mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
Consolekit: implement *safe* shutdown / reboot
This commit is contained in:
parent
466ce36555
commit
7a1055769f
@ -25,4 +25,10 @@ LOCKFILE="xbmc.disabled"
|
|||||||
touch "$LOCKDIR/$LOCKFILE"
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
wait_on_xbmc_exit
|
wait_on_xbmc_exit
|
||||||
killall sshd
|
killall sshd
|
||||||
|
killall5 -15
|
||||||
|
for seq in `seq 1 10` ; do
|
||||||
|
usleep 500000
|
||||||
|
clear > /dev/tty1
|
||||||
|
killall5 -18 || break
|
||||||
|
done
|
||||||
reboot
|
reboot
|
||||||
|
@ -25,4 +25,10 @@ LOCKFILE="xbmc.disabled"
|
|||||||
touch "$LOCKDIR/$LOCKFILE"
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
wait_on_xbmc_exit
|
wait_on_xbmc_exit
|
||||||
killall sshd
|
killall sshd
|
||||||
|
killall5 -15
|
||||||
|
for seq in `seq 1 10` ; do
|
||||||
|
usleep 500000
|
||||||
|
clear > /dev/tty1
|
||||||
|
killall5 -18 || break
|
||||||
|
done
|
||||||
poweroff
|
poweroff
|
||||||
|
Loading…
x
Reference in New Issue
Block a user