- 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:
Stephan Raue 2010-05-07 21:28:45 +02:00
parent c7d0017869
commit 1125e41e4f
4 changed files with 26 additions and 40 deletions

View File

@ -1,12 +0,0 @@
#
# caching xbmc
#
# runlevels: openelec, textmode
if [ "$XBMC_CACHING" = "yes" ]; then
progress "caching XBMC"
cache_xbmc
fi

View 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

View File

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

View File

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