Files
poky/meta/recipes-core/busybox/files/rcS
Andre McCurdy d11cc29758 busybox: fix stop -vs- start typo in rcS script
Also make the rcS and rcK comments match the code.

(From OE-Core rev: 8b033e6faa0a6927f1e1ee2484381eff8231a549)

Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-01-26 22:32:00 +00:00

437 B

#!/bin/sh

Start all init scripts in /etc/rcS.d and /etc/rc5.d

executing them in numerical order.

for i in /etc/rcS.d/S??* /etc/rc5.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