inteno-netmode: fixe so that all wifi-ifac is deleted as they should

This commit is contained in:
Reidar Cederqvist 2017-09-14 10:22:42 +02:00
parent d000b5e27b
commit 688df72baa

View file

@ -215,7 +215,8 @@ while uci -q get wireless.@wifi-iface[$i] >/dev/null; do
fi
state="reload"
uci -q delete wireless.@wifi-iface[$i] >/dev/null
i=$((i+1))
# do not increment i. The next interface will now
# have the same index as the deleted interface
done
uci commit wireless