mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
xbmc: init: add 'safe shutdown / reboot'. we need this for RPi
This commit is contained in:
parent
ae9a91b3d4
commit
21a93be4d3
@ -78,18 +78,21 @@ fi
|
|||||||
0)
|
0)
|
||||||
if [ ! $(pidof console-kit-daemon) ]; then
|
if [ ! $(pidof console-kit-daemon) ]; then
|
||||||
touch "$LOCKDIR/$LOCKFILE"
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
|
_safe_shutdown
|
||||||
poweroff -f
|
poweroff -f
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
64)
|
64)
|
||||||
if [ ! $(pidof console-kit-daemon) ]; then
|
if [ ! $(pidof console-kit-daemon) ]; then
|
||||||
touch "$LOCKDIR/$LOCKFILE"
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
|
_safe_shutdown
|
||||||
poweroff -f
|
poweroff -f
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
66)
|
66)
|
||||||
if [ ! $(pidof console-kit-daemon) ]; then
|
if [ ! $(pidof console-kit-daemon) ]; then
|
||||||
touch "$LOCKDIR/$LOCKFILE"
|
touch "$LOCKDIR/$LOCKFILE"
|
||||||
|
_safe_shutdown
|
||||||
reboot
|
reboot
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user