ConsoleKit: re-add 'safe shutdown / reboot'

This commit is contained in:
Stefan Saraev 2013-01-17 21:48:28 +02:00
parent 84faae5a0a
commit ae9a91b3d4
2 changed files with 6 additions and 0 deletions

View File

@ -20,9 +20,12 @@
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. /etc/profile.d/safe-shutdown.conf
LOCKDIR="/var/lock/"
LOCKFILE="xbmc.disabled"
touch "$LOCKDIR/$LOCKFILE"
wait_on_xbmc_exit
killall sshd
_safe_shutdown
reboot

View File

@ -20,9 +20,12 @@
# http://www.gnu.org/copyleft/gpl.html
################################################################################
. /etc/profile.d/safe-shutdown.conf
LOCKDIR="/var/lock/"
LOCKFILE="xbmc.disabled"
touch "$LOCKDIR/$LOCKFILE"
wait_on_xbmc_exit
killall sshd
_safe_shutdown
poweroff