bcm28xx-i2c: hide option, use tab
[openadk.git] / package / miredo / files / miredo-server.init
blob03fccdee397f134b4babaea2f71abdde00f569ca
1 #!/bin/sh
2 #PKG miredo-server
3 #INIT 60
5 . /etc/rc.conf
7 case $1 in
8 autostop) ;;
9 autostart)
10 test x"${miredo-server:-NO}" = x"NO" && exit 0
11 test x"$miredo-server" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
12 exec sh $0 start
14 start)
15 /usr/sbin/miredo-server
17 stop)
18 kill $(pgrep -f /usr/sbin/miredo-server)
20 restart)
21 sh $0 stop
22 sh $0 start
25 echo "usage: $0 {start | stop | restart}"
26 exit 1
27 esac
28 exit $?