diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-02-15 15:11:34 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-02-15 15:11:34 +0000 |
commit | 2f67d9e2fe7bbec10e67bf7e52999c594c4d6400 (patch) | |
tree | 84e3428db35283defe8c6fa3446b65d8ae887693 /target/generic/target_busybox_skeleton/etc/init.d/rcS | |
parent | 0fed2766a40419cd325dbb8ec0ac29f96ccc1b83 (diff) | |
download | buildroot-novena-2f67d9e2fe7bbec10e67bf7e52999c594c4d6400.tar.gz buildroot-novena-2f67d9e2fe7bbec10e67bf7e52999c594c4d6400.zip |
- preparation for BR2_PACKAGE_BUSYBOX_SKELETON
"Use a minimal target skeleton for use with busybox's mdev et al"
Diffstat (limited to 'target/generic/target_busybox_skeleton/etc/init.d/rcS')
-rwxr-xr-x | target/generic/target_busybox_skeleton/etc/init.d/rcS | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/generic/target_busybox_skeleton/etc/init.d/rcS b/target/generic/target_busybox_skeleton/etc/init.d/rcS new file mode 100755 index 000000000..de411534d --- /dev/null +++ b/target/generic/target_busybox_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 + |