blob: b8e29855d49debb11856a8ce07c74c4396b9afcd [file] [log] [blame]
Andrew Geissler89770b02020-06-13 10:40:47 -05001#!/bin/sh
2
3# Start all init scripts in /etc/rcS.d and /etc/rc5.d
4# executing them in numerical order.
5#
6
7for 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
26done
27