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 &