imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / squeezelite / files / squeezelite.init
blob562abf1a1393736f3f1062078c92cf0cb808d7f9
1 #!/bin/sh
2 #PKG squeezelite
3 #INIT 60
4 . /etc/rc.conf
6 case $1 in
7 autostop) ;;
8 autostart)
9 test x"${squeezelite:-NO}" = x"NO" && exit 0
10 test x"$squeezelite" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
11 exec sh $0 start
13 start)
14 /usr/bin/squeezelite $squeezelite_flags
16 stop)
17 kill $(pgrep -f /usr/bin/squeezelite)
19 restart)
20 sh $0 stop
21 sh $0 start
24 echo "usage: $0 {start | stop | restart}"
25 exit 1
26 esac
27 exit $?