projects
/
oweals
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a5afe5266f0ac447740c469359fad8caa13f995b
[oweals/openwrt.git]
/
openwrt
/
package
/
base-files
/
default
/
etc
/
init.d
/
S40network
1
#!/bin/sh
2
[ -e /etc/config/network] && . /etc/config/network
3
case "$1" in
4
start|restart)
5
ifup lan
6
ifup wan
7
ifup wifi
8
wifi up
9
10
for route in $(nvram get static_route); do {
11
eval "set $(echo $route | sed 's/:/ /g')"
12
$DEBUG route add -net $1 netmask $2 gw $3 metric $4 dev $5
13
} done
14
;;
15
esac