mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
busybox:
- simplyfing init script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user