add ifup -a to boot(), closes #4543 #2781
[openwrt-10.03/.git] / package / base-files / files / etc / init.d / network
1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2006 OpenWrt.org
3
4 START=40
5 STOP=40
6
7 boot() {
8         setup_switch() { return 0; }
9
10         include /lib/network
11         setup_switch
12         [ -s /etc/config/wireless ] || \
13                 /sbin/wifi detect > /etc/config/wireless
14         ifup -a
15         /sbin/wifi up
16 }
17
18 start() {
19         ifup -a
20         /sbin/wifi up
21 }
22
23 restart() {
24         setup_switch() { return 0; }
25         
26         include /lib/network
27         setup_switch
28         ifup -a
29         /sbin/wifi up
30 }
31
32 stop() {
33         ifdown -a
34 }