diff options
Diffstat (limited to 'target/default/target_skeleton/etc/init.d')
-rwxr-xr-x | target/default/target_skeleton/etc/init.d/S99done | 3 | ||||
-rwxr-xr-x | target/default/target_skeleton/etc/init.d/rcS | 22 |
2 files changed, 3 insertions, 22 deletions
diff --git a/target/default/target_skeleton/etc/init.d/S99done b/target/default/target_skeleton/etc/init.d/S99done index 4ecba5f3e5..ce60337212 100755 --- a/target/default/target_skeleton/etc/init.d/S99done +++ b/target/default/target_skeleton/etc/init.d/S99done @@ -1,5 +1,4 @@ #!/bin/sh # set leds to normal state echo "0x00" > /proc/sys/diag -sysctl -p -sysctl -n +sysctl -p >&- diff --git a/target/default/target_skeleton/etc/init.d/rcS b/target/default/target_skeleton/etc/init.d/rcS index 9510e941a5..262907ae48 100755 --- a/target/default/target_skeleton/etc/init.d/rcS +++ b/target/default/target_skeleton/etc/init.d/rcS @@ -1,25 +1,7 @@ #!/bin/sh - # Start all init scripts in /etc/init.d # executing them in numerical order. # -for i in /etc/init.d/S??* ;do - - # Ignore dangling symlinks (if any). - [ ! -f "$i" ] && continue - - case "$i" in - *.sh) - # Source shell script for speed. - ( - trap - INT QUIT TSTP - set start - . $i - ) - ;; - *) - # No sh extension, so fork subprocess. - $i start - ;; - esac +for i in /etc/init.d/S* ;do + [ -f "$i" ] && $i start done |