2009-04-26, 02:42
Hi sorry if i'm off the ball on this please correct me if i'm wrong, buts it's my understanding that on quit, reboot, shutdown etc xbmc returns a code i.e 0, 64, 65 depending on what the action is. For instance the case statement regulary used in xsession script seems to wait for 0), 64), 65) etc, shown below.
basically i was wondering if someone could give me some further insight or point me in the direction of some documentation into the codes that are returned. I was mainly interested if there any other possible codes returned for other different behaviours such as logoff etc
cheers
Code:
xbmc --standalone
case "$?" in
0 ) # Quit
touch /tmp/noRestartXBMC
break ;;
64 ) # Shutdown System
sleep 10 ;;
65 ) # Warm Reboot
echo "Restarting XBMC ..." ;;
66 ) # Reboot System
sleep 10 ;;
* ) ;;
esac
basically i was wondering if someone could give me some further insight or point me in the direction of some documentation into the codes that are returned. I was mainly interested if there any other possible codes returned for other different behaviours such as logoff etc
cheers