diff options
Diffstat (limited to 'meta/recipes-core/busybox/files/rcS')
-rw-r--r-- | meta/recipes-core/busybox/files/rcS | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/files/rcS b/meta/recipes-core/busybox/files/rcS new file mode 100644 index 0000000000..d18c26b4c3 --- /dev/null +++ b/meta/recipes-core/busybox/files/rcS | |||
@@ -0,0 +1,26 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # Stop all init scripts in /etc/init.d | ||
4 | # executing them in reversed numerical order. | ||
5 | # | ||
6 | |||
7 | for i in /etc/rcS.d/S??* /etc/rc5.d/S??* ;do | ||
8 | # Ignore dangling symlinks (if any). | ||
9 | [ ! -f "$i" ] && continue | ||
10 | |||
11 | case "$i" in | ||
12 | *.sh) | ||
13 | # Source shell script for speed. | ||
14 | ( | ||
15 | trap - INT QUIT TSTP | ||
16 | set stop | ||
17 | . $i | ||
18 | ) | ||
19 | ;; | ||
20 | *) | ||
21 | # No sh extension, so fork subprocess. | ||
22 | $i start | ||
23 | ;; | ||
24 | esac | ||
25 | done | ||
26 | |||