mcastmngr: do not overwrite configuration if snooping section exists

This commit is contained in:
Erik Karlsson 2021-04-08 12:57:30 +02:00 committed by Rahul Thakur
parent dbe1a31d09
commit a6c3c54091

View file

@ -51,6 +51,9 @@ if [ -s "/etc/config/mcast" ]; then
if uci -q get mcast.@proxy[0] >/dev/null; then
# return if there is any valid content
exit
elif uci -q get mcast.@snooping[0] >/dev/null; then
# return if there is any valid content
exit
else
rm -f /etc/config/mcast
fi