1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-28 16:21:09 +02:00

[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
This commit is contained in:
jow 2012-09-13 08:47:10 +00:00
parent 9b3a0a2c3c
commit 8579664108

View File

@ -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 $?
;;