From 3ac1acb9ea70080aaaf49ae211835f057e60eefa Mon Sep 17 00:00:00 2001 From: mbm Date: Tue, 25 May 2004 04:32:27 +0000 Subject: Initial revision git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../sources/target_skeleton/etc/init.d/rcS | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 obsolete-buildroot/sources/target_skeleton/etc/init.d/rcS (limited to 'obsolete-buildroot/sources/target_skeleton/etc/init.d/rcS') diff --git a/obsolete-buildroot/sources/target_skeleton/etc/init.d/rcS b/obsolete-buildroot/sources/target_skeleton/etc/init.d/rcS new file mode 100755 index 000000000..de411534d --- /dev/null +++ b/obsolete-buildroot/sources/target_skeleton/etc/init.d/rcS @@ -0,0 +1,27 @@ +#!/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 +done + -- cgit v1.2.3