mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
mcastmngr: do not overwrite configuration if snooping section exists
This commit is contained in:
parent
dbe1a31d09
commit
a6c3c54091
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue