]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ccxstream/ccxstream-1.0.15/ccxstream.conf
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ccxstream / ccxstream-1.0.15 / ccxstream.conf
1 #!/bin/sh
2
3 #Uncomment the line below to begin (mandatory)
4 #CHECK=YES
5
6 #Below the user to run the service as (mandatory)
7 RUNASUSER="root"
8
9 #Below the password on the XBOX (optional)
10 #REMOTEPASS="xboxpassword" 
11
12 #Below the interface to listen on (mandatory)
13 LISTENINTERFACE="192.168.1.1"
14
15 FOLLOWSYMLINKS=YES
16
17 #Comment (optional)
18 #SERVERCOMMENT="Video and MP3 server powered by Gentoo. Watch and listen and ENJOY."
19
20 #Shares to make available (mandatory)
21 SHARES="movies=/data/videos audio=/data/mp3"
22
23 #Location of binary file. Leave default unless you know what you're doing (mandatory)
24 BIN="/usr/sbin/ccxstream"
25
26 #-----------------------------------------------------------------------------#
27 #-----------------------------------------------------------------------------#
28
29 DIR="-"
30
31 PIDFILE=/var/run/ccxstream.pid
32
33 PARAMS="-f -F $PIDFILE -r $DIR -u $RUNASUSER"
34
35 if test "$FOLLOWSYMLINKS" = "YES" ; then
36     PARAMS="$PARAMS -L"
37 fi
38
39 if test "x$REMOTEPASS" != "x" ; then
40     PARAMS="$PARAMS -P $REMOTEPASS"
41 fi
42
43 if test "x$LISTENINTERFACE" != "x" ; then
44     PARAMS="$PARAMS -l $LISTENINTERFACE"
45 fi
46
47 for i in $SHARES ; do
48     PARAMS="$PARAMS -S $i"
49 done
50
51 if test "x$SERVERCOMMENT" = "x" ; then
52     SERVERCOMMENT="$(hostname -f)"
53 fi
54