Last change
on this file since 41285 was
33734,
checked in by Stephan, 9 years ago
|
[xupnpd] check install path
|
-
Property svn:executable set to
*
|
File size:
875 bytes
|
Line | |
---|
1 | #! /bin/sh |
---|
2 | # |
---|
3 | ### BEGIN INIT INFO |
---|
4 | # Provides: xupnpd |
---|
5 | # Required-Start: $network |
---|
6 | # Required-Stop: $network |
---|
7 | # Short-Description: xupnpd Server |
---|
8 | ### END INIT INFO |
---|
9 | |
---|
10 | export PATH=$PATH:/var/swap/bin:/mnt/swapextensions/bin:/var/bin |
---|
11 | |
---|
12 | if [ -e /mnt/swapextensions/bin/xupnpd ];then |
---|
13 | INSTDIR=/mnt/swapextensions |
---|
14 | else |
---|
15 | INSTDIR=/var/swap |
---|
16 | fi |
---|
17 | export XUPNPDROOTDIR=$INSTDIR/etc/xupnpd |
---|
18 | |
---|
19 | model=`cat /etc/model` |
---|
20 | NAME=xupnpd |
---|
21 | DESC="xupnpd-$model" |
---|
22 | DAEMON=xupnpd |
---|
23 | USER=root |
---|
24 | GROUP=root |
---|
25 | IP=`ifconfig | grep inet | grep Bcast | awk '{print $2}' | cut -d":" -f2` |
---|
26 | |
---|
27 | case $1 in |
---|
28 | start) |
---|
29 | bouquet2m3u http://$IP:22222/ $INSTDIR/etc/xupnpd/playlists |
---|
30 | start-stop-daemon --verbose --start --exec xupnpd |
---|
31 | ;; |
---|
32 | stop) |
---|
33 | start-stop-daemon --verbose --stop --exec xupnpd |
---|
34 | ;; |
---|
35 | restart) |
---|
36 | $0 stop |
---|
37 | $0 start |
---|
38 | ;; |
---|
39 | *) |
---|
40 | echo "Usage: xupnpd.sh {start|restart|stop}" |
---|
41 | ;; |
---|
42 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.