mirror of
https://github.com/immortalwrt/immortalwrt.git
synced 2025-08-14 14:19:53 +08:00
deal with static routes
SVN-Revision: 8
This commit is contained in:
@ -161,3 +161,12 @@ lan_proto="static"
|
|||||||
configure lan
|
configure lan
|
||||||
configure wifi
|
configure wifi
|
||||||
configure wan
|
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
|
||||||
|
Reference in New Issue
Block a user