mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
Revert "ConsoleKit: add proper shutdown support via init scripts"
This reverts commit 626b77cf833c1cd6ef54c9c3a0fd8a813876067c.
This commit is contained in:
parent
4b15c9098a
commit
798d6af303
@ -68,13 +68,13 @@ case $RUNLEVEL in
|
|||||||
|
|
||||||
case "$RET" in
|
case "$RET" in
|
||||||
0)
|
0)
|
||||||
RUNLEVEL="poweroff"
|
poweroff -f
|
||||||
;;
|
;;
|
||||||
64)
|
64)
|
||||||
RUNLEVEL="poweroff"
|
poweroff -f
|
||||||
;;
|
;;
|
||||||
66)
|
66)
|
||||||
RUNLEVEL="reboot"
|
reboot
|
||||||
;;
|
;;
|
||||||
255)
|
255)
|
||||||
echo "Abnormal Exit. Exited with code $RET"
|
echo "Abnormal Exit. Exited with code $RET"
|
||||||
|
@ -20,20 +20,4 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
. /etc/profile
|
reboot
|
||||||
|
|
||||||
progress "Reboot the syste"
|
|
||||||
RET=0
|
|
||||||
|
|
||||||
RUNLEVEL="reboot"
|
|
||||||
|
|
||||||
for script in `ls -r1 /etc/init.d/*`; do
|
|
||||||
if grep -q -e "^# runlevels:.*$MODE" $script; then
|
|
||||||
. $script
|
|
||||||
S_RET=$?
|
|
||||||
test $S_RET -ge $RET && RET=$S_RET
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
sync
|
|
||||||
reboot
|
|
||||||
|
@ -20,20 +20,4 @@
|
|||||||
# http://www.gnu.org/copyleft/gpl.html
|
# http://www.gnu.org/copyleft/gpl.html
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
. /etc/profile
|
poweroff
|
||||||
|
|
||||||
progress "Poweroff the system"
|
|
||||||
RET=0
|
|
||||||
|
|
||||||
RUNLEVEL="poweroff"
|
|
||||||
|
|
||||||
for script in `ls -r1 /etc/init.d/*`; do
|
|
||||||
if grep -q -e "^# runlevels:.*$MODE" $script; then
|
|
||||||
. $script
|
|
||||||
S_RET=$?
|
|
||||||
test $S_RET -ge $RET && RET=$S_RET
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
sync
|
|
||||||
poweroff -f
|
|
||||||
|
@ -55,3 +55,15 @@
|
|||||||
test $S_RET -ge $RET && RET=$S_RET
|
test $S_RET -ge $RET && RET=$S_RET
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ -z "$RUNLEVEL" -o $RUNLEVEL="boot" ]; then
|
||||||
|
RUNLEVEL="poweroff"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for script in `ls -r1 /etc/init.d/*`; do
|
||||||
|
if grep -q -e "^# runlevels:.*$MODE" $script; then
|
||||||
|
. $script
|
||||||
|
S_RET=$?
|
||||||
|
test $S_RET -ge $RET && RET=$S_RET
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user