mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-01-27 17:37:18 +01:00
mcastmngr: remove dependency on ports uci file
This commit is contained in:
parent
b64f41dc6b
commit
10564d779c
1 changed files with 1 additions and 2 deletions
|
|
@ -97,8 +97,7 @@ interfaces_ok(){
|
|||
# mcast config is outdated, simply generate as per new logic
|
||||
if [ -z "$dev_section" ]; then
|
||||
# check if the itf is a native interface && return 1
|
||||
native=$(ubus call uci get '{"config":"ports", "type":"ethport", "match":{"ifname":"'"$itf"'"}}' | jsonfilter -e @.values | jq keys[])
|
||||
[ -z "native" ] && return 1
|
||||
[ -f "/proc/net/vlan/$itf" ] || return 1
|
||||
fi
|
||||
done
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue