split ifup/ifdown/wifi into standalone scripts
[openwrt/svn-archive/archive.git] / root / etc / init.d / rcS
1 #!/bin/sh
2
3 # Start all init scripts in /etc/init.d
4 # executing them in numerical order.
5 #
6 for i in /etc/init.d/S??* ;do
7
8 # Ignore dangling symlinks (if any).
9 [ ! -f "$i" ] && continue
10
11 case "$i" in
12 *.sh)
13 # Source shell script for speed.
14 (
15 trap - INT QUIT TSTP
16 set start
17 . $i
18 )
19 ;;
20 *)
21 # No sh extension, so fork subprocess.
22 $i start
23 ;;
24 esac
25 done