From ab26d6ba206ec2ab1d889b6df9608d6ce736b892 Mon Sep 17 00:00:00 2001 From: mbm Date: Sun, 8 May 2005 22:02:59 +0000 Subject: log rcS output git-svn-id: svn://svn.openwrt.org/openwrt/trunk@816 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../default/target_skeleton/etc/init.d/S99done | 3 +-- .../target/default/target_skeleton/etc/init.d/rcS | 22 ++-------------------- openwrt/target/default/target_skeleton/etc/inittab | 2 +- 3 files changed, 4 insertions(+), 23 deletions(-) (limited to 'openwrt/target') diff --git a/openwrt/target/default/target_skeleton/etc/init.d/S99done b/openwrt/target/default/target_skeleton/etc/init.d/S99done index 4ecba5f3e..ce6033721 100755 --- a/openwrt/target/default/target_skeleton/etc/init.d/S99done +++ b/openwrt/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/openwrt/target/default/target_skeleton/etc/init.d/rcS b/openwrt/target/default/target_skeleton/etc/init.d/rcS index 9510e941a..262907ae4 100755 --- a/openwrt/target/default/target_skeleton/etc/init.d/rcS +++ b/openwrt/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 diff --git a/openwrt/target/default/target_skeleton/etc/inittab b/openwrt/target/default/target_skeleton/etc/inittab index aab2df956..3be6aae5c 100644 --- a/openwrt/target/default/target_skeleton/etc/inittab +++ b/openwrt/target/default/target_skeleton/etc/inittab @@ -1,3 +1,3 @@ -::sysinit:/etc/init.d/rcS +::sysinit:/etc/init.d/rcS 2>&1 | logger -p 6 -t '' -s ::shutdown:/sbin/halt tts/0::askfirst:/bin/ash --login -- cgit v1.2.3