summaryrefslogtreecommitdiff
path: root/root/etc
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-03-28 04:15:26 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-03-28 04:15:26 +0000
commit30e87aab88d7cbb8ba3f77e877a4014e236bc3a7 (patch)
treeb4cd244269b4f9052d9d04940ec3effac1b058f3 /root/etc
parentcd5d89517d077ee30ce1da5e2a49ff07b4b48be7 (diff)
deal with static routes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root/etc')
-rwxr-xr-xroot/etc/networking.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/root/etc/networking.sh b/root/etc/networking.sh
index b857a86c06..c1e6742e36 100755
--- 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