mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 21:00:37 +02:00
deal with static routes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cd5d89517d
commit
30e87aab88
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user