prevent zombies from occuring when stdou/stdout are held open
[openwrt-10.03/.git] / target / default / target_skeleton / etc / init.d / rcS
index 262907ae48ca50ea14e74377db16b988d18e7084..e6daddc5935c9fd5b6920680d2b613d81a400062 100755 (executable)
@@ -1,7 +1,8 @@
 #!/bin/sh
-# Start all init scripts in /etc/init.d
-# executing them in numerical order.
-#
-for i in /etc/init.d/S* ;do
-  [ -f "$i" ] && $i start
-done
+syslogd -C 16
+klogd
+${FAILSAFE:+telnetd -l /bin/login; ifup lan; exit}
+
+for i in /etc/init.d/S*; do
+  $i start 2>&1
+done | logger -s -p 6 -t '' &