From bc74201c90e1ea15c96ad9077773300343c21458 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 29 Dec 2009 19:35:52 +0100 Subject: [PATCH] busybox: - simplyfing init script --- packages/sysutils/busybox/scripts/init | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index b886a77455..f9d05397ec 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -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