add rrdcollect package
[openwrt.git] / package / chillispot / files / chillispot.init
1 #!/bin/sh
2
3 RUN_D=/var/run
4 PID_F=$RUN_D/chilli.pid
5
6 case $1 in
7 start)
8 /sbin/insmod tun >/dev/null 2>&1
9 [ -d $RUN_D ] || mkdir -p $RUN_D
10 /usr/sbin/chilli
11 ;;
12 stop)
13 [ -f $PID_F ] && kill $(cat $PID_F) >/dev/null 2>&1
14 ;;
15 *)
16 echo "usage: $0 (start|stop)"
17 exit 1
18 esac
19
20 exit $?
This page took 0.058417 seconds and 5 git commands to generate.