mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-02 15:37:49 +00:00
xbmc-dharma: 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:
parent
13c96f1b58
commit
763c9d6e5b
@ -28,17 +28,20 @@
|
|||||||
|
|
||||||
progress "starting XBMC"
|
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
|
# starting pulseaudio if avaible
|
||||||
[ -f /usr/bin/pulseaudio ] && /usr/bin/pulseaudio \
|
[ -f /usr/bin/pulseaudio ] && /usr/bin/pulseaudio \
|
||||||
--start --log-target=syslog --daemonize 2>&1 > /dev/null
|
--start --log-target=syslog --daemonize 2>&1 > /dev/null
|
||||||
|
|
||||||
# starting xbmc-wiimote if avaible
|
# 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
|
# 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
|
# starting autoupdate
|
||||||
[ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &
|
[ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &
|
||||||
|
Loading…
x
Reference in New Issue
Block a user