- rename xbmc startscript to xbmc-session
- add start of windowmanager if requested
This commit is contained in:
Stephan Raue 2010-03-14 17:25:38 +01:00
parent 060f9ad9b9
commit c75a368d07
3 changed files with 27 additions and 19 deletions

View File

@ -65,7 +65,7 @@ $SCRIPTS/install samba
PKG_DIR=`find $PACKAGES -type d -name $1`
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
cp -PR $PKG_BUILD/xbmc.bin $INSTALL/usr/share/xbmc

View File

@ -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

View 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