X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=root%2Fetc%2Fnetworking.sh;h=c1e6742e363eba61f9ac409837b89a7c4c02ae1e;hb=30e87aab88d7cbb8ba3f77e877a4014e236bc3a7;hp=b857a86c062f045c5636c96e2609183797443da3;hpb=cd5d89517d077ee30ce1da5e2a49ff07b4b48be7;p=openwrt-10.03%2F.git diff --git a/root/etc/networking.sh b/root/etc/networking.sh index b857a86c0..c1e6742e3 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