From 184b3410b928cf2f7af7452f285c6eb6de076b07 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Fri, 1 Oct 2010 21:51:43 +0200 Subject: [PATCH] xbmc-dharma: quote variables, cosmetics Signed-off-by: Stephan Raue --- packages/mediacenter/xbmc-dharma/init.d/61_xbmc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/mediacenter/xbmc-dharma/init.d/61_xbmc b/packages/mediacenter/xbmc-dharma/init.d/61_xbmc index da61bfe8f6..6406c7e13e 100755 --- a/packages/mediacenter/xbmc-dharma/init.d/61_xbmc +++ b/packages/mediacenter/xbmc-dharma/init.d/61_xbmc @@ -38,10 +38,12 @@ progress "starting XBMC" --start --log-target=syslog --daemonize 2>&1 > /dev/null # starting xbmc-wiimote if avaible - [ -f /usr/bin/xbmc-wiiremote -a $(pidof bluetoothd) ] && /usr/bin/xbmc-wiiremote >/dev/null 2>&1 & + [ "$(pidof bluetoothd)" -a -f /usr/bin/xbmc-wiiremote ] && \ + /usr/bin/xbmc-wiiremote >/dev/null 2>&1 & # starting xbmc-ps3remote if avaible - [ -f /usr/bin/xbmc-ps3remote -a $(pidof bluetoothd) ] && /usr/bin/xbmc-ps3remote localhost 9777 >/dev/null 2>&1 & + [ "$(pidof bluetoothd)" -a -f /usr/bin/xbmc-ps3remote ] && \ + /usr/bin/xbmc-ps3remote localhost 9777 >/dev/null 2>&1 & # starting autoupdate [ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &