xf.li | 48994ac | 2024-12-02 00:13:05 -0800 | [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 | . /etc/init.d/first.sh |
| 8 | |
| 9 | sh /etc/init.d/enter_amt.sh |
| 10 | if [ $? -eq 0 ]; then |
| 11 | echo "enter into amt mode" |
| 12 | exit 0 |
| 13 | fi |
| 14 | |
| 15 | for 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 |
| 34 | done |
| 35 | |
| 36 | . /etc/rc.local |
| 37 | |
| 38 | sh /etc/lynq_monitor.sh & |
| 39 | exit 0 |
| 40 | |