summaryrefslogtreecommitdiff
path: root/package/netifd/files/etc/init.d/network
blob: 9ef2506dea533c7d819befd26a8fa70b9a39055c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh /etc/rc.common
START=40
STOP=90

start() {
	setup_switch() { return 0; }

	include /lib/network
	setup_switch

	ifup -a
	grep -qs config /etc/config/wireless && {
		/sbin/wifi up
	}
}

restart() {
	start
}

stop() {
	/sbin/ifdown -a
}