summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib/functions
diff options
context:
space:
mode:
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-09-13 08:47:10 +0000
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-09-13 08:47:10 +0000
commit85796641083642a4461d24ef4dd7f9a39681b4c0 (patch)
tree64191d438f0f649d4c6981b482ee315d63ce1b57 /package/base-files/files/lib/functions
parent9b3a0a2c3c1fd0019c23c7fabc35046fa584dca1 (diff)
[package] base-files: remove route enabled check in lib/functions/network.sh after netifd bump
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33391 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/functions')
-rw-r--r--package/base-files/files/lib/functions/network.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/package/base-files/files/lib/functions/network.sh b/package/base-files/files/lib/functions/network.sh
index d2d4aae0d..a4652569b 100644
--- a/package/base-files/files/lib/functions/network.sh
+++ b/package/base-files/files/lib/functions/network.sh
@@ -49,7 +49,6 @@ __network_gateway()
local __tmp="$(ubus call network.interface."$__iface" status 2>/dev/null)"
local __idx=1
- local __enabled
json_load "${__tmp:-{}}"
@@ -61,10 +60,9 @@ __network_gateway()
json_select "$((__idx++))"
json_get_var __tmp target
- json_get_var __enabled enabled
- case "${__enabled}/${__family}/${__tmp}" in
- 1/4/0.0.0.0|1/6/::)
+ case "${__family}/${__tmp}" in
+ 4/0.0.0.0|6/::)
json_get_var "$__var" nexthop
return $?
;;