mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +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
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
. /etc/profile.d/safe-shutdown.conf
|
||||||
|
|
||||||
LOCKDIR="/var/lock/"
|
LOCKDIR="/var/lock/"
|
||||||
LOCKFILE="xbmc.disabled"
|
LOCKFILE="xbmc.disabled"
|
||||||
touch "$LOCKDIR/$LOCKFILE"
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
wait_on_xbmc_exit
|
wait_on_xbmc_exit
|
||||||
killall sshd
|
killall sshd
|
||||||
|
_safe_shutdown
|
||||||
reboot
|
reboot
|
||||||
|
@ -20,9 +20,12 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
|
. /etc/profile.d/safe-shutdown.conf
|
||||||
|
|
||||||
LOCKDIR="/var/lock/"
|
LOCKDIR="/var/lock/"
|
||||||
LOCKFILE="xbmc.disabled"
|
LOCKFILE="xbmc.disabled"
|
||||||
touch "$LOCKDIR/$LOCKFILE"
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
wait_on_xbmc_exit
|
wait_on_xbmc_exit
|
||||||
killall sshd
|
killall sshd
|
||||||
|
_safe_shutdown
|
||||||
poweroff
|
poweroff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user