hts-tvheadend: rework init scripts

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-01-09 03:49:21 +01:00
parent ae1aa10665
commit 1692b6adb7

View File

@ -1,5 +1,3 @@
#!/bin/sh
################################################################################
# Copyright (C) 2009-2010 OpenELEC.tv
# http://www.openelec.tv
@ -24,14 +22,13 @@
#
# runlevels: openelec, textmode
. /etc/profile
(
[ -f /storage/.config/tv-server.conf ] && . /storage/.config/tv-server.conf || exit 0
if [ -f /storage/.config/tv-server.conf ]; then
. /storage/.config/tv-server.conf
if [ "$TVHEADEND_START" = "yes" ]; then
progress "starting TV Server"
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
fi
)&