From 713ca907be02b9124c9fbe4beac5dc25a967fd57 Mon Sep 17 00:00:00 2001 From: bstascav Date: Fri, 20 Dec 2013 10:54:01 -0500 Subject: [PATCH] Add XMBC_HOME export to plexuser shell startup --- packages/mediacenter/plex/plexht/init.d/93_plexht | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/mediacenter/plex/plexht/init.d/93_plexht b/packages/mediacenter/plex/plexht/init.d/93_plexht index 39e333ea1fc..8fc7e39a01e 100644 --- a/packages/mediacenter/plex/plexht/init.d/93_plexht +++ b/packages/mediacenter/plex/plexht/init.d/93_plexht @@ -66,6 +66,15 @@ LIRCDEV="/var/run/lirc/lircd" [ -e /var/run/lirc/lircd.irtrans ] && LIRCDEV="/var/run/lirc/lircd.irtrans" XBMC_ARGS="--standalone -fs --lircdev $LIRCDEV" +if [ ! -f /storage/.bashrc ]; then + touch /storage/.bashrc + echo "export XBMC_HOME=/storage/debug/plexht" >> /storage/.bashrc +else + if ! grep -q "export XBMC_HOME=/storage/debug/plexht" /storage/.bashrc; then + echo "export XBMC_HOME=/storage/debug/plexht" >> /storage/.bashrc + fi +fi + if [ "$DEBUG" = yes ]; then XBMC_ARGS="$XBMC_ARGS --debug" fi