mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-04 00:14:55 +01:00
questd: imonitor: do not restart quest if lan ifname is missing or is bridge
This commit is contained in:
parent
4c4c8dc576
commit
82f0e36033
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue