mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 15:07:49 +00:00
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:
parent
006a72d456
commit
688ac77083
6
packages/multimedia/hts-tvheadend/config/tv-server.conf
Normal file
6
packages/multimedia/hts-tvheadend/config/tv-server.conf
Normal 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"
|
@ -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
|
||||
)&
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user