kernel: add filesystem options
[openadk.git] / package / mrd6 / files / mrd6.init
blob4502f6bd30207e9cb8f97b1a86c3953c6dd57cc9
1 #!/bin/sh
2 #PKG mrd6
3 #INIT 60
5 . /etc/rc.conf
7 case $1 in
8 autostop) ;;
9 autostart)
10 test x"${mrd6:-NO}" = x"NO" && exit 0
11 test x"$mrd6" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
12 exec sh $0 start
14 start)
15 /usr/sbin/mrd6 -f /etc/mrd6.conf -D
17 stop)
18 kill $(pgrep -f /usr/sbin/mrd6)
20 restart)
21 sh $0 stop
22 sh $0 start
25 echo "Usage: $0 {start | stop | restart}"
27 esac
28 exit $?