don't build stripped executable, let sstrip do its job
[openwrt.git] / package / snort / ipkg / snort.init
1 #!/bin/sh
2
3 DEFAULT=/etc/default/snort
4 LOG_D=/var/log/snort
5 RUN_D=/var/run
6 [ -f $DEFAULT ] && . $DEFAULT
7 PID_F=$RUN_D/snort_$INTERFACE.pid
8
9 case $1 in
10 start)
11 [ -d $LOG_D ] || mkdir -p $LOG_D
12 [ -d $RUN_D ] || mkdir -p $RUN_D
13 snort $OPTIONS
14 ;;
15 stop)
16 [ -f $PID_F ] && kill $(cat $PID_F)
17 ;;
18 *)
19 echo "usage: $0 (start|stop)"
20 exit 1
21 esac
22
23 exit $?
This page took 0.055628 seconds and 5 git commands to generate.