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:
d84bdd2
)
deal with static routes
author
Mike Baker
<mbm@openwrt.org>
Sun, 6 Jun 2004 05:25:39 +0000
(
05:25
+0000)
committer
Mike Baker
<mbm@openwrt.org>
Sun, 6 Jun 2004 05:25:39 +0000
(
05:25
+0000)
SVN-Revision: 62
root/etc/init.d/S40network
patch
|
blob
|
history
diff --git
a/root/etc/init.d/S40network
b/root/etc/init.d/S40network
index 4264705dc9038c86a8a4f995a4a8123201e87651..5a6ca725b5c793eddd9d19ac2c0caef0393c3c0f 100755
(executable)
--- a/
root/etc/init.d/S40network
+++ b/
root/etc/init.d/S40network
@@
-6,5
+6,10
@@
case "$1" in
ifup wan
ifup wifi
wifi up
+
+ for route in $(nvram_get static_route); do {
+ eval "set $(echo $route | sed 's/:/ /g')"
+ route add -net $1 netmask $2 gw $3 metric $4 dev $5
+ } done
;;
esac