From 77cbe274fbbf704091d4c9c04cdee6ab25ef6813 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 25 Jan 2012 15:21:58 +0100 Subject: [PATCH] xbmc-pvr: add short startdelay and support to override the start delay on buildtime Signed-off-by: Stephan Raue --- packages/mediacenter/xbmc-pvr/init.d/93_xbmc | 1 + packages/mediacenter/xbmc-pvr/profile.d/xbmc.conf | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/packages/mediacenter/xbmc-pvr/init.d/93_xbmc b/packages/mediacenter/xbmc-pvr/init.d/93_xbmc index 9f4c1e8586..655c4f04fd 100644 --- a/packages/mediacenter/xbmc-pvr/init.d/93_xbmc +++ b/packages/mediacenter/xbmc-pvr/init.d/93_xbmc @@ -72,6 +72,7 @@ fi )& # starting XBMC + usleep $XBMC_STARTDELAY while true; do DISPLAY=:0.0 /usr/lib/xbmc/xbmc.bin $XBMC_ARGS > /dev/null 2>&1 diff --git a/packages/mediacenter/xbmc-pvr/profile.d/xbmc.conf b/packages/mediacenter/xbmc-pvr/profile.d/xbmc.conf index 0495a2733e..7677f0d264 100644 --- a/packages/mediacenter/xbmc-pvr/profile.d/xbmc.conf +++ b/packages/mediacenter/xbmc-pvr/profile.d/xbmc.conf @@ -24,6 +24,10 @@ # evironment variables that are not user defined. ################################################################################ +if [ -z "$XBMC_STARTDELAY" ]; then + XBMC_STARTDELAY="1000000" +fi + XBMC_HOME="/usr/share/xbmc" export XBMC_HOME