summaryrefslogtreecommitdiff
path: root/src/rootfs_skel/etc/init.d/rcS
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-07-13 01:30:00 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-07-13 01:30:00 +0200
commit2b3708a74a99839578f669a052e44d75a319aeb2 (patch)
treeeb6b478fd5e664df087a569a33640913d89497d4 /src/rootfs_skel/etc/init.d/rcS
parent1124d50c2883dffbafe750134aedb9aebd3e295e (diff)
downloadembtoolkit-2b3708a74a99839578f669a052e44d75a319aeb2.tar.gz
embtoolkit-2b3708a74a99839578f669a052e44d75a319aeb2.tar.bz2
embtoolkit-2b3708a74a99839578f669a052e44d75a319aeb2.tar.xz
RootFS: rename target_skeleton rootfs_skel
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'src/rootfs_skel/etc/init.d/rcS')
-rwxr-xr-xsrc/rootfs_skel/etc/init.d/rcS27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/rootfs_skel/etc/init.d/rcS b/src/rootfs_skel/etc/init.d/rcS
new file mode 100755
index 0000000..de41153
--- /dev/null
+++ b/src/rootfs_skel/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
+