mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
busybox:
- simplyfing init script
This commit is contained in:
parent
f1d6357c64
commit
bc74201c90
@ -46,16 +46,11 @@
|
||||
fi
|
||||
|
||||
# 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
|
||||
|
||||
for script in /sbin/init.d/*; do
|
||||
for script in /etc/init.d/*; do
|
||||
if grep -q -e "^# runlevels:.*$RUNLEVEL" $script; then
|
||||
/bin/sh $script
|
||||
. $script
|
||||
S_RET=$?
|
||||
test $S_RET -ge $RET && RET=$S_RET
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user