aboutsummaryrefslogtreecommitdiffstats
path: root/target/default/target_skeleton
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2005-05-08 22:02:59 +0000
committerMike Baker <mbm@openwrt.org>2005-05-08 22:02:59 +0000
commit326cae8e775a5140da25fffd3a08645b3b81daa9 (patch)
tree4e29c6e9a7a8e64359aa04cfb8c72cbd4ac2db50 /target/default/target_skeleton
parentd2d901cd7f84a39aec8063174448e15b09b97d64 (diff)
downloadupstream-326cae8e775a5140da25fffd3a08645b3b81daa9.tar.gz
upstream-326cae8e775a5140da25fffd3a08645b3b81daa9.tar.bz2
upstream-326cae8e775a5140da25fffd3a08645b3b81daa9.zip
log rcS output
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@816 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/default/target_skeleton')
-rwxr-xr-xtarget/default/target_skeleton/etc/init.d/S99done3
-rwxr-xr-xtarget/default/target_skeleton/etc/init.d/rcS22
-rw-r--r--target/default/target_skeleton/etc/inittab2
3 files changed, 4 insertions, 23 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
diff --git a/target/default/target_skeleton/etc/inittab b/target/default/target_skeleton/etc/inittab
index aab2df9562..3be6aae5cf 100644
--- a/target/default/target_skeleton/etc/inittab
+++ b/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