blob: 0cb2386ed39900eb4bd77819b28b08ca133ddc5b [file] [log] [blame]
xf.li86118912025-03-19 20:07:27 -07001#!/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. /etc/init.d/first.sh
8
9sh /etc/init.d/enter_amt.sh
10if [ $? -eq 0 ]; then
11 echo "enter into amt mode"
12 exit 0
13fi
14
15for i in /etc/rcS.d/S??* ;do
16
17 # Ignore dangling symlinks (if any).
18 [ ! -f "$i" ] && continue
19
20 case "$i" in
21 *.sh)
22 # Source shell script for speed.
23 (
24 trap - INT QUIT TSTP
25 set start
26 . $i
27 )
28 ;;
29 *)
30 # No sh extension, so fork subprocess.
31 $i start
32 ;;
33 esac
34done
35
36. /etc/rc.local
37
38sh /etc/lynq_monitor.sh &
39exit 0
40