projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e124d
)
deal with static routes
author
Mike Baker
<mbm@openwrt.org>
Sun, 28 Mar 2004 04:15:26 +0000
(
04:15
+0000)
committer
Mike Baker
<mbm@openwrt.org>
Sun, 28 Mar 2004 04:15:26 +0000
(
04:15
+0000)
SVN-Revision: 8
root/etc/networking.sh
patch
|
blob
|
history
diff --git
a/root/etc/networking.sh
b/root/etc/networking.sh
index b857a86c062f045c5636c96e2609183797443da3..c1e6742e363eba61f9ac409837b89a7c4c02ae1e 100755
(executable)
--- a/
root/etc/networking.sh
+++ b/
root/etc/networking.sh
@@
-161,3
+161,12
@@
lan_proto="static"
configure lan
configure wifi
configure wan
+
+for route in $(nvram_get static_route); do {
+ ip=${route%%:*} route=${route#*:}
+ netmask=${route%%:*} route=${route#*:}
+ gateway=${route%%:*} route=${route#*:}
+ metric=${route%%:*} route=${route#*:}
+ if=${route%%:*}
+ $DEBUG route add -net $ip netmask $netmask gw $gateway metric $metric dev $if
+} done