mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-08-01 23:17:50 +00:00
xbmc:
- rename xbmc startscript to xbmc-session - add start of windowmanager if requested
This commit is contained in:
parent
060f9ad9b9
commit
c75a368d07
@ -65,7 +65,7 @@ $SCRIPTS/install samba
|
|||||||
PKG_DIR=`find $PACKAGES -type d -name $1`
|
PKG_DIR=`find $PACKAGES -type d -name $1`
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/bin
|
mkdir -p $INSTALL/usr/bin
|
||||||
cp -PR $PKG_DIR/scripts/xbmc $INSTALL/usr/bin
|
cp -PR $PKG_DIR/scripts/xbmc-session $INSTALL/usr/bin
|
||||||
|
|
||||||
mkdir -p $INSTALL/usr/share/xbmc
|
mkdir -p $INSTALL/usr/share/xbmc
|
||||||
cp -PR $PKG_BUILD/xbmc.bin $INSTALL/usr/share/xbmc
|
cp -PR $PKG_BUILD/xbmc.bin $INSTALL/usr/share/xbmc
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
. /etc/sysconfig
|
|
||||||
|
|
||||||
export DISPLAY=":0.0"
|
|
||||||
|
|
||||||
/usr/share/xbmc/xbmc.bin \
|
|
||||||
--standalone \
|
|
||||||
-fs \
|
|
||||||
--lircdev $LIRC_OUTPUT \
|
|
||||||
$@
|
|
||||||
|
|
||||||
RET=$?
|
|
||||||
echo "Exited with code $RET"
|
|
||||||
|
|
||||||
[ "$RET" == 0 ] && initctl emit shutdown REBOOT=no
|
|
||||||
[ "$RET" == 64 ] && initctl emit shutdown REBOOT=no
|
|
||||||
[ "$RET" == 66 ] && initctl emit shutdown REBOOT=yes
|
|
26
packages/mediacenter/xbmc/scripts/xbmc-session
Executable file
26
packages/mediacenter/xbmc/scripts/xbmc-session
Executable file
@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. /etc/sysconfig
|
||||||
|
|
||||||
|
XBMC_ARGS="--standalone -fs --lircdev $LIRC_OUTPUT"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
|
||||||
|
[ $START_WM="yes" ] && $WINDOWMANAGER &
|
||||||
|
|
||||||
|
$XBMC_BIN $XBMC_ARGS $@ > /dev/null 2>&1
|
||||||
|
RET=$?
|
||||||
|
echo "Exited with code $RET"
|
||||||
|
|
||||||
|
[ "$RET" == 0 ] && break
|
||||||
|
[ "$RET" == 64 ] && sync && poweroff
|
||||||
|
[ "$RET" == 66 ] && sync && reboot
|
||||||
|
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user