Initial revision
[openwrt.git] / target / default / target_skeleton / etc / init.d / rcS
1 #!/bin/sh
2
3
4 # Start all init scripts in /etc/init.d
5 # executing them in numerical order.
6 #
7 for i in /etc/init.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