- simplyfing init script
This commit is contained in:
Stephan Raue 2009-12-29 19:35:52 +01:00
parent f1d6357c64
commit bc74201c90

View File

@ -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