mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 14:37:59 +00:00
xbmc:
- remove xbmc-session script - install /usr/share/xbmc/xbmc.bin to /usr/bin/xbmc - add init script to start xbmc - remove cache init script
This commit is contained in:
parent
c7d0017869
commit
1125e41e4f
@ -1,12 +0,0 @@
|
||||
#
|
||||
# caching xbmc
|
||||
#
|
||||
# runlevels: openelec, textmode
|
||||
|
||||
if [ "$XBMC_CACHING" = "yes" ]; then
|
||||
|
||||
progress "caching XBMC"
|
||||
|
||||
cache_xbmc
|
||||
|
||||
fi
|
24
packages/mediacenter/xbmc/init.d/60_xbmc
Normal file
24
packages/mediacenter/xbmc/init.d/60_xbmc
Normal file
@ -0,0 +1,24 @@
|
||||
# starting XBMC
|
||||
#
|
||||
# runlevels: openelec
|
||||
|
||||
. /etc/profile
|
||||
|
||||
progress "starting XBMC"
|
||||
|
||||
XBMC_ARGS="--standalone -fs --lircdev /dev/lircd"
|
||||
|
||||
[ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &
|
||||
|
||||
while true; do
|
||||
|
||||
DISPLAY=:0.0 xbmc $XBMC_ARGS > /dev/null 2>&1
|
||||
RET=$?
|
||||
echo "Exited with code $RET"
|
||||
|
||||
[ "$RET" == 0 ] && sync && poweroff
|
||||
[ "$RET" == 64 ] && sync && poweroff
|
||||
[ "$RET" == 66 ] && sync && reboot
|
||||
|
||||
usleep 250000
|
||||
done
|
@ -68,11 +68,11 @@ PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||
PYTHON_LIBDIR="`ls -d $INSTALL/usr/lib/python*`"
|
||||
|
||||
mkdir -p $INSTALL/usr/bin
|
||||
cp -P $PKG_DIR/scripts/xbmc-session $INSTALL/usr/bin
|
||||
cp -P $PKG_BUILD/xbmc.bin $INSTALL/usr/bin/xbmc
|
||||
# cp -P $PKG_DIR/scripts/xbmc-session $INSTALL/usr/bin
|
||||
cp -P $PKG_BUILD/tools/EventClients/Clients/XBMC\ Send/xbmc-send.py $INSTALL/usr/bin/xbmc-send
|
||||
|
||||
mkdir -p $INSTALL/usr/share/xbmc
|
||||
cp -P $PKG_BUILD/xbmc.bin $INSTALL/usr/share/xbmc
|
||||
cp -P $PKG_BUILD/xbmc-xrandr $INSTALL/usr/share/xbmc
|
||||
|
||||
mkdir -p $INSTALL/usr/share/xbmc/language
|
||||
|
@ -1,26 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
. /etc/profile
|
||||
|
||||
XBMC_ARGS="--standalone -fs --lircdev /dev/lircd"
|
||||
|
||||
if test "$XBMC_CACHING" = "yes" ; then
|
||||
wait_for_xbmc_cache
|
||||
XBMC_BIN="/var/cache/bin/xbmc.bin"
|
||||
else
|
||||
XBMC_BIN="/usr/share/xbmc/xbmc.bin"
|
||||
fi
|
||||
|
||||
[ -f /usr/bin/autoupdate ] && /usr/bin/autoupdate &
|
||||
|
||||
while true; do
|
||||
|
||||
$IONICE $XBMC_BIN $XBMC_ARGS $@ > /dev/null 2>&1
|
||||
RET=$?
|
||||
echo "Exited with code $RET"
|
||||
|
||||
[ "$RET" == 0 ] && sync && poweroff
|
||||
[ "$RET" == 64 ] && sync && poweroff
|
||||
[ "$RET" == 66 ] && sync && reboot
|
||||
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user