From: Mike Baker Date: Sun, 6 Jun 2004 05:25:39 +0000 (+0000) Subject: deal with static routes X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d6a9b8300809bc7b606502d7df77130703ef6c65;p=openwrt%2Fsvn-archive%2Farchive.git deal with static routes SVN-Revision: 62 --- 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