mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 21:26:49 +00:00
busybox:
- simplyfing init script
This commit is contained in:
parent
f1d6357c64
commit
bc74201c90
@ -46,16 +46,11 @@
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# starting init scripts for wanted runlevel
|
# starting init scripts for wanted runlevel
|
||||||
count=0
|
|
||||||
for script in /sbin/init.d/*; do
|
|
||||||
grep -q -e "^# runlevels:.*$RUNLEVEL" $script && count=$(($count+1));
|
|
||||||
done
|
|
||||||
|
|
||||||
RET=0
|
RET=0
|
||||||
|
|
||||||
for script in /sbin/init.d/*; do
|
for script in /etc/init.d/*; do
|
||||||
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
|
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
|
||||||
/bin/sh $script
|
. $script
|
||||||
S_RET=$?
|
S_RET=$?
|
||||||
test $S_RET -ge $RET && RET=$S_RET
|
test $S_RET -ge $RET && RET=$S_RET
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user