questd: imonitor: do not restart quest if lan ifname is missing or is bridge

This commit is contained in:
Sukru Senli 2017-12-13 13:38:22 +01:00
parent 4c4c8dc576
commit 82f0e36033

View file

@ -129,6 +129,8 @@ check_ubus_network_call() {
json_load "$(ifstatus lan)" || return 0
json_get_var up up
[ $up -eq 1 ] || return 0
local ifname="$(uci -q get network.lan.ifname)"
[ -z "$ifname" -o "${ifname:0:3}" == "br-" ] && return 0
ubus -t 5 call router.network ports '{"network":"lan"}' | grep -q statistics || {
NNET_NFAIL=1
return 1