hts-tvheadend: add tv-server configfile, add support to start tv-headend optional

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-12-30 23:56:51 +01:00
parent 006a72d456
commit 688ac77083
3 changed files with 17 additions and 2 deletions

View File

@ -0,0 +1,6 @@
# tv-server.conf
# This configuration file allows you to setup the TV-Server
# Start TV.Headend at boot ( yes / no )
TVHEADEND_START="no"

View File

@ -26,6 +26,12 @@
. /etc/profile
progress "starting TV Server"
(
[ -f /storage/.config/tv-server.conf ] && . /storage/.config/tv-server.conf || exit 0
tvheadend -C -s -f -u root -g root
if [ "$TVHEADEND_START" = "yes" ]; then
progress "starting TV Server"
tvheadend -C -s -f -u root -g root
fi
)&

View File

@ -4,3 +4,6 @@
mkdir -p $INSTALL/usr/bin
cp -P $PKG_BUILD/build.Linux/tvheadend $INSTALL/usr/bin
mkdir -p $INSTALL/usr/config
cp $PKG_DIR/config/tv-server.conf $INSTALL/usr/config