imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / logitechmediaserver / files / logitechmediaserver.init
blob15b5c8df0d5105b61d30f59eeb146e8e584647d9
1 #!/bin/sh
2 #PKG logitechmediaserver
3 #INIT 80
5 . /etc/rc.conf
7 case $1 in
8 autostop) ;;
9 autostart)
10 test x"${logitechmediaserver:-NO}" = x"NO" && exit 0
11 test x"$logitechmediaserver" = x"DAEMON" && test -x /bin/mksh && exec mksh -T- $0 start
12 exec sh $0 start
14 start)
15 mkdir -p /data/lms/Cache /data/lms/Logs /data/lms/prefs
16 chown -R squeezeboxserver /data/lms
17 su squeezeboxserver -c 'perl /opt/lms/slimserver.pl --daemon'
19 stop)
21 restart)
22 sh $0 stop
23 sh $0 start
26 echo "Usage: $0 {start | stop | restart}"
27 exit 1
29 esac
30 exit $?