netifd: bring up all interfaces on /etc/init.d/network restart
[openwrt/svn-archive/archive.git] / package / netifd / files / etc / init.d / network
1 #!/bin/sh /etc/rc.common
2 START=40
3 STOP=90
4
5 start() {
6 setup_switch() { return 0; }
7
8 include /lib/network
9 setup_switch
10
11 ifup -a
12 grep -qs config /etc/config/wireless && {
13 /sbin/wifi up
14 }
15 }
16
17 restart() {
18 start
19 }
20
21 stop() {
22 /sbin/ifdown -a
23 }