Root/package/netifd/files/etc/init.d/network

1#!/bin/sh /etc/rc.common
2START=40
3STOP=90
4
5start() {
6    setup_switch() { return 0; }
7
8    include /lib/network
9    setup_switch
10
11    ubus call network reload
12
13    grep -qs config /etc/config/wireless && {
14        /sbin/wifi up
15    }
16}
17
18restart() {
19    start
20}
21
22stop() {
23    /sbin/ifdown -a
24}
25

Archive Download this file



interactive