base-files: change network_find_wan() procedure to ignore default gateways in different routing tables
SVN-Revision: 36553
This commit is contained in:
parent
3c17fd41a4
commit
026271d03c
2 changed files with 14 additions and 10 deletions
|
@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||||
include $(INCLUDE_DIR)/version.mk
|
include $(INCLUDE_DIR)/version.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=137
|
PKG_RELEASE:=138
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
PKG_BUILD_DEPENDS:=opkg/host
|
PKG_BUILD_DEPENDS:=opkg/host
|
||||||
|
|
|
@ -80,16 +80,20 @@ __network_parse_ifstatus()
|
||||||
while json_is_a "$__idx" object; do
|
while json_is_a "$__idx" object; do
|
||||||
|
|
||||||
json_select "$((__idx++))"
|
json_select "$((__idx++))"
|
||||||
json_get_var __tmp target
|
json_get_var __tmp table
|
||||||
|
|
||||||
case "${__tmp}" in
|
if [ -z "$__tmp" ]; then
|
||||||
0.0.0.0)
|
json_get_var __tmp target
|
||||||
__network_set_cache "${__key}_gateway4" nexthop
|
|
||||||
;;
|
case "${__tmp}" in
|
||||||
::)
|
0.0.0.0)
|
||||||
__network_set_cache "${__key}_gateway6" nexthop
|
__network_set_cache "${__key}_gateway4" nexthop
|
||||||
;;
|
;;
|
||||||
esac
|
::)
|
||||||
|
__network_set_cache "${__key}_gateway6" nexthop
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
|
||||||
json_select ".."
|
json_select ".."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue