Andrew Geissler | 89770b0 | 2020-06-13 10:40:47 -0500 | [diff] [blame^] | 1 | #!/bin/sh |
2 | |||||
3 | # Start all init scripts in /etc/rcS.d and /etc/rc5.d | ||||
4 | # executing them in numerical order. | ||||
5 | # | ||||
6 | |||||
7 | for i in /etc/rcS.d/S??* /etc/rc5.d/S??* ;do | ||||
8 | |||||
9 | # Ignore dangling symlinks (if any). | ||||
10 | [ ! -f "$i" ] && continue | ||||
11 | |||||
12 | case "$i" in | ||||
13 | *.sh) | ||||
14 | # Source shell script for speed. | ||||
15 | ( | ||||
16 | trap - INT QUIT TSTP | ||||
17 | set start | ||||
18 | . $i | ||||
19 | ) | ||||
20 | ;; | ||||
21 | *) | ||||
22 | # No sh extension, so fork subprocess. | ||||
23 | $i start | ||||
24 | ;; | ||||
25 | esac | ||||
26 | done | ||||
27 |