xbmc: init: add 'safe shutdown / reboot'. we need this for RPi

This commit is contained in:
Stefan Saraev 2013-01-17 21:54:49 +02:00
parent ae9a91b3d4
commit 21a93be4d3

View File

@ -78,18 +78,21 @@ fi
0)
if [ ! $(pidof console-kit-daemon) ]; then
touch "$LOCKDIR/$LOCKFILE"
_safe_shutdown
poweroff -f
fi
;;
64)
if [ ! $(pidof console-kit-daemon) ]; then
touch "$LOCKDIR/$LOCKFILE"
_safe_shutdown
poweroff -f
fi
;;
66)
if [ ! $(pidof console-kit-daemon) ]; then
touch "$LOCKDIR/$LOCKFILE"
_safe_shutdown
reboot
fi
;;