xbmc-dharma: log last exitcode for debugging

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2010-09-19 23:35:16 +02:00
parent 8ba192a7d0
commit dc274601f3

View File

@ -46,6 +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
[ "$RET" == 0 ] && sync && poweroff
[ "$RET" == 64 ] && sync && poweroff