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

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

	include /lib/network
	setup_switch

	ubus call network reload
}

restart() {
	start
}

stop() {
	/sbin/ifdown -a
}