upgrade busybox to v1.1.0-pre1
[openwrt.git] / openwrt / package / miredo / files / miredo.init
1 #!/bin/sh
2
3 BIN=miredo
4 DEFAULT=/etc/default/$BIN
5 RUN_D=/var/run
6 PID_F=$RUN_D/$BIN.pid
7 [ -f $DEFAULT ] && . $DEFAULT
8
9 case $1 in
10 start)
11 [ -d $RUN_D ] || mkdir -p $RUN_D
12 insmod ipv6
13 insmod tun
14 $BIN $OPTIONS
15 ;;
16 stop)
17 [ -f $PID_F ] && kill $(cat $PID_F)
18 ;;
19 restart)
20 $0 stop
21 $0 start
22 ;;
23 *)
24 echo "usage: $0 (start|stop|restart)"
25 exit 1
26 esac
27
28 exit $?
This page took 0.042321 seconds and 5 git commands to generate.