mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
base-files: change network_find_wan() procedure to ignore default gateways in different routing tables
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36553 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
280eac850b
commit
53b612f049
@ -11,7 +11,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
||||
include $(INCLUDE_DIR)/version.mk
|
||||
|
||||
PKG_NAME:=base-files
|
||||
PKG_RELEASE:=137
|
||||
PKG_RELEASE:=138
|
||||
|
||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||
PKG_BUILD_DEPENDS:=opkg/host
|
||||
|
||||
@ -80,16 +80,20 @@ __network_parse_ifstatus()
|
||||
while json_is_a "$__idx" object; do
|
||||
|
||||
json_select "$((__idx++))"
|
||||
json_get_var __tmp target
|
||||
json_get_var __tmp table
|
||||
|
||||
case "${__tmp}" in
|
||||
0.0.0.0)
|
||||
__network_set_cache "${__key}_gateway4" nexthop
|
||||
;;
|
||||
::)
|
||||
__network_set_cache "${__key}_gateway6" nexthop
|
||||
;;
|
||||
esac
|
||||
if [ -z "$__tmp" ]; then
|
||||
json_get_var __tmp target
|
||||
|
||||
case "${__tmp}" in
|
||||
0.0.0.0)
|
||||
__network_set_cache "${__key}_gateway4" nexthop
|
||||
;;
|
||||
::)
|
||||
__network_set_cache "${__key}_gateway6" nexthop
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
json_select ".."
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user