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

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

	include /lib/network
	setup_switch

	ubus call network reload

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

restart() {
	start
}

stop() {
	/sbin/ifdown -a
}