libgpg-error: Fix compiling with uclibc
[openadk.git] / package / totd / files / totd.init
blobcd3c5fc837820355e2bdbf0dfc091aefbdec4f03
1 #!/bin/sh
2 #PKG totd
3 #INIT 60
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${totd:-NO}" = x"NO" && exit 0
10 test x"$totd" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 totd $totd_flags -c /etc/totd.conf
16 stop)
17 pkill totd
19 restart)
20 sh $0 stop
21 sh $0 start
24 echo "Usage: $0 {start | stop | restart}"
26 esac
27 exit $?