mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
ConsoleKit: re-add 'safe shutdown / reboot'
This commit is contained in:
parent
84faae5a0a
commit
ae9a91b3d4
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user