xbmc-dharma: logging of exitcode for debugging

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-20 18:27:19 +02:00
parent 3e5fa2c834
commit dc7e012c51

View File

@ -46,7 +46,7 @@ progress "starting XBMC"
DISPLAY=:0.0 xbmc $XBMC_ARGS > /dev/null 2>&1
RET=$?
echo "Exited with code $RET"
echo "Last XBMC Exitcode: $RET" >> $HOME/.xbmc/temp/last_exit.log
echo "Last XBMC Exitcode: $RET" >> /storage/.xbmc/temp/last_exit.log
[ "$RET" == 0 ] && sync && poweroff
[ "$RET" == 64 ] && sync && poweroff