mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +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)
|
||||
if [ ! $(pidof console-kit-daemon) ]; then
|
||||
touch "$LOCKDIR/$LOCKFILE"
|
||||
_safe_shutdown
|
||||
poweroff -f
|
||||
fi
|
||||
;;
|
||||
64)
|
||||
if [ ! $(pidof console-kit-daemon) ]; then
|
||||
touch "$LOCKDIR/$LOCKFILE"
|
||||
_safe_shutdown
|
||||
poweroff -f
|
||||
fi
|
||||
;;
|
||||
66)
|
||||
if [ ! $(pidof console-kit-daemon) ]; then
|
||||
touch "$LOCKDIR/$LOCKFILE"
|
||||
_safe_shutdown
|
||||
reboot
|
||||
fi
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user