mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-07 09:50:50 +01:00
inteno-netmodes: netmode-conf now only deletes correct wifi-ifaces
This commit is contained in:
parent
f61a0528f1
commit
e21dbcb787
1 changed files with 6 additions and 0 deletions
|
|
@ -207,7 +207,13 @@ while json_get_var dummy $i; do
|
|||
i=$((i+1))
|
||||
done
|
||||
|
||||
if [ $repeater_iface_num -gt $i ]; then
|
||||
i=$((i-1))
|
||||
fi
|
||||
|
||||
while uci -q get wireless.@wifi-iface[$i] >/dev/null; do
|
||||
# if repeater_iface_num is greater than the number of
|
||||
# configured downlink we need to make sure its not deleted
|
||||
local mode="$(uci -q get wireless.@wifi-iface[$i].mode)"
|
||||
if [ "$mode" == "wet" -o "$mode" == "sta" ]; then
|
||||
i=$((i+1))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue