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