summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-09-13 08:47:10 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-09-13 08:47:10 +0000
commitdac5ed38b63d31c26339916517c27b30dc8ab1c6 (patch)
tree42cbf9ffccd3d4f03ad0bc3c5f7b2e73f34b1558 /package
parent90c6994ad2394ca3d48aaf7bc0f8298cfaf332ee (diff)
downloadmtk-20170518-dac5ed38b63d31c26339916517c27b30dc8ab1c6.zip
mtk-20170518-dac5ed38b63d31c26339916517c27b30dc8ab1c6.tar.gz
mtk-20170518-dac5ed38b63d31c26339916517c27b30dc8ab1c6.tar.bz2
base-files: remove route enabled check in lib/functions/network.sh after netifd bump
SVN-Revision: 33391
Diffstat (limited to 'package')
-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 d2d4aae..a465256 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 $?
;;