Root/
| 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 | ubus call network reload |
| 12 | |
| 13 | grep -qs config /etc/config/wireless && { |
| 14 | /sbin/wifi up |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | restart() { |
| 19 | start |
| 20 | } |
| 21 | |
| 22 | stop() { |
| 23 | /sbin/ifdown -a |
| 24 | } |
| 25 |
