1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Delete bridge created at boot in openmptcprouter uci-defaults omr-network script

This commit is contained in:
Ycarus (Yannick Chabanois) 2025-02-17 18:22:26 +01:00
parent e262441c40
commit ffe9f68064

View file

@ -209,11 +209,11 @@ if [ -z "$(uci -q show network | grep device)" ]; then
fi
# Delete all bridges
#if [ -n "$(uci -q show network | grep bridge)" ]; then
# for bridge in $(uci -q show network | awk -F. '/bridge/ { print $2}'); do
# uci -q delete network.${bridge}
# done
#fi
if [ -n "$(uci -q show network | grep bridge)" ]; then
for bridge in $(uci -q show network | awk -F. '/bridge/ { print $2}'); do
uci -q delete network.${bridge}
done
fi
uci -q batch <<-EOF
delete network.none