mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +00:00
d11cc29758
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>
28 lines
437 B
Bash
28 lines
437 B
Bash
#!/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
|
|
|