projects
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cd5d895
)
deal with static routes
author
mbm
<mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 28 Mar 2004 04:15:26 +0000
(
04:15
+0000)
committer
mbm
<mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 28 Mar 2004 04:15:26 +0000
(
04:15
+0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
root/etc/networking.sh
patch
|
blob
|
history
diff --git
a/root/etc/networking.sh
b/root/etc/networking.sh
index
b857a86
..
c1e6742
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
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
This page took
0.020908 seconds
and
4
git commands to generate.