Consolekit: implement *safe* shutdown / reboot

This commit is contained in:
Stefan Saraev 2013-01-15 22:30:59 +02:00
parent 466ce36555
commit 7a1055769f
2 changed files with 12 additions and 0 deletions

View File

@ -25,4 +25,10 @@ LOCKFILE="xbmc.disabled"
touch "$LOCKDIR/$LOCKFILE"
wait_on_xbmc_exit
killall sshd
killall5 -15
for seq in `seq 1 10` ; do
usleep 500000
clear > /dev/tty1
killall5 -18 || break
done
reboot

View File

@ -25,4 +25,10 @@ LOCKFILE="xbmc.disabled"
touch "$LOCKDIR/$LOCKFILE"
wait_on_xbmc_exit
killall sshd
killall5 -15
for seq in `seq 1 10` ; do
usleep 500000
clear > /dev/tty1
killall5 -18 || break
done
poweroff