X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2f006aa5e8a74e2dd224f5e9b90d36c79651fd66..8480b3568e9ac76ef5dfc8e084395a56573f4b43:/target/default/target_skeleton/etc/init.d/rcS diff --git a/target/default/target_skeleton/etc/init.d/rcS b/target/default/target_skeleton/etc/init.d/rcS index de411534d..e6daddc59 100755 --- a/target/default/target_skeleton/etc/init.d/rcS +++ b/target/default/target_skeleton/etc/init.d/rcS @@ -1,27 +1,8 @@ #!/bin/sh +syslogd -C 16 +klogd +${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit} - -# 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 -done - +for i in /etc/init.d/S*; do + $i start 2>&1 +done | logger -s -p 6 -t '' &