mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-08 03:50:48 +00:00
base-files: remove route enabled check in lib/functions/network.sh after netifd bump
SVN-Revision: 33391
This commit is contained in:
parent
90c6994ad2
commit
dac5ed38b6
@ -49,7 +49,6 @@ __network_gateway()
|
|||||||
|
|
||||||
local __tmp="$(ubus call network.interface."$__iface" status 2>/dev/null)"
|
local __tmp="$(ubus call network.interface."$__iface" status 2>/dev/null)"
|
||||||
local __idx=1
|
local __idx=1
|
||||||
local __enabled
|
|
||||||
|
|
||||||
json_load "${__tmp:-{}}"
|
json_load "${__tmp:-{}}"
|
||||||
|
|
||||||
@ -61,10 +60,9 @@ __network_gateway()
|
|||||||
|
|
||||||
json_select "$((__idx++))"
|
json_select "$((__idx++))"
|
||||||
json_get_var __tmp target
|
json_get_var __tmp target
|
||||||
json_get_var __enabled enabled
|
|
||||||
|
|
||||||
case "${__enabled}/${__family}/${__tmp}" in
|
case "${__family}/${__tmp}" in
|
||||||
1/4/0.0.0.0|1/6/::)
|
4/0.0.0.0|6/::)
|
||||||
json_get_var "$__var" nexthop
|
json_get_var "$__var" nexthop
|
||||||
return $?
|
return $?
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user