diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-06-06 05:25:39 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-06-06 05:25:39 +0000 |
commit | 82ed9215690c08fc3d4caa532085cffd16a4cc5e (patch) | |
tree | 69d9a8edbdca66bb06ff45f429ae73d3366f4f7c /root/etc/init.d | |
parent | a194cca4d668437830ee82b62554520dafff051b (diff) |
deal with static routes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@62 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root/etc/init.d')
-rwxr-xr-x | root/etc/init.d/S40network | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/root/etc/init.d/S40network b/root/etc/init.d/S40network index 4264705dc9..5a6ca725b5 100755 --- 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 |