mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-31 22:47:51 +00:00
Revert "busybox: add initial support for shutdown scripts"
This reverts commit 18a4b9e055a568e20c6d7dfdd2a721e67b940d48.
This commit is contained in:
parent
86d8de73db
commit
c161e997d7
@ -46,8 +46,6 @@
|
|||||||
progress "Starting Init Scripts"
|
progress "Starting Init Scripts"
|
||||||
RET=0
|
RET=0
|
||||||
|
|
||||||
RUNLEVEL="boot"
|
|
||||||
|
|
||||||
for script in `ls -1 /etc/init.d/*`; do
|
for script in `ls -1 /etc/init.d/*`; do
|
||||||
if grep -q -e "^# runlevels:.*$MODE" $script; then
|
if grep -q -e "^# runlevels:.*$MODE" $script; then
|
||||||
. $script
|
. $script
|
||||||
@ -55,15 +53,3 @@
|
|||||||
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