source: titan/plugins/dlna/dlna.sh @ 41285

Last change on this file since 41285 was 24522, checked in by obi, 10 years ago

fix gmediarender and add debug for minidlna

  • Property svn:executable set to *
File size: 729 bytes
Line 
1#! /bin/sh
2#
3### BEGIN INIT INFO
4# Provides:             minidlna
5# Required-Start:       $network
6# Required-Stop:        $network
7# Short-Description:    MiniDLNA Server
8### END INIT INFO
9
10export PATH=$PATH:/var/swap/bin:/mnt/swapextensions/bin:/var/bin
11export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/swap/lib:/mnt/swapextensions/lib:/var/lib
12
13model=`cat /etc/model`
14NAME=minidlna
15DESC="MiniDLNA-$model"
16DAEMON=minidlna
17USER=root
18GROUP=root
19 
20params="-f $2 -R"
21 
22case $1 in
23  start)
24    start-stop-daemon --verbose --start --exec minidlna -- ${params}
25  ;;
26  stop)
27    start-stop-daemon --verbose --stop --exec minidlna
28  ;;
29  restart)
30    $0 stop
31    $0 start
32  ;;
33  *)
34    echo "Usage: dlna.sh {start|restart|stop}"
35  ;;
36esac
Note: See TracBrowser for help on using the repository browser.