xbmc: use /var/run/lirc/lircd.irtrans if it exist, start xbmc-wiiremote and xbmc-ps3remote only if bluetoothd is started

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-30 15:29:46 +02:00
parent 763c9d6e5b
commit dde819e057

View File

@ -28,17 +28,20 @@
progress "starting XBMC"
XBMC_ARGS="--standalone -fs --lircdev /var/run/lirc/lircd"
LIRCDEV="/var/run/lirc/lircd"
[ -e /var/run/lirc/lircd.irtrans ] && LIRCDEV="/var/run/lirc/lircd.irtrans"
XBMC_ARGS="--standalone -fs --lircdev $LIRCDEV"
# starting pulseaudio if avaible
[ -f /usr/bin/pulseaudio ] && /usr/bin/pulseaudio \
--start --log-target=syslog --daemonize 2>&1 > /dev/null
# starting xbmc-wiimote if avaible
[ -f /usr/bin/xbmc-wiiremote ] && /usr/bin/xbmc-wiiremote >/dev/null 2>&1 &
[ -f /usr/bin/xbmc-wiiremote -a $(pidof bluetoothd) ] && /usr/bin/xbmc-wiiremote >/dev/null 2>&1 &
# starting xbmc-ps3remote if avaible
[ -f /usr/bin/xbmc-ps3remote ] && /usr/bin/xbmc-ps3remote localhost 9777 >/dev/null 2>&1 &
[ -f /usr/bin/xbmc-ps3remote -a $(pidof bluetoothd) ] && /usr/bin/xbmc-ps3remote localhost 9777 >/dev/null 2>&1 &
# starting autoupdate
[ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &