gcc: add old versions
[openadk.git] / package / brutefir / files / brutefir.init
blobb3a85aa76c250890714774979fa95bba0d6ab042
1 #!/bin/sh
2 #PKG brutefir
3 #INIT 79
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${brutefir:-NO}" = x"NO" && exit 0
10 test x"$brutefir" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 (/usr/bin/brutefir $brutefir_flags &) && sleep 0.2
16 stop)
17 kill $(pgrep -f /usr/bin/brutefir) && sleep 0.2
19 restart)
20 sh $0 stop
21 sh $0 start
24 echo "Usage: $0 {start | stop | restart}"
25 exit 1
27 esac
28 exit $?