mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-07 17:57:22 +01:00
map-agent: map_genconfig: don't modify mapcontroller enabled unconditionally
This commit is contained in:
parent
482c1a1a81
commit
cbdad382a2
1 changed files with 6 additions and 6 deletions
|
|
@ -188,12 +188,12 @@ map_genconf () {
|
|||
uci -q set mapagent.@controller_select[0].local=1
|
||||
fi
|
||||
uci -q commit mapagent
|
||||
fi
|
||||
|
||||
if [ "$multiap_mode" == "agent" -o "$multiap_mode" == "none" ]; then
|
||||
uci set mapcontroller.controller.enabled="0"
|
||||
else
|
||||
uci set mapcontroller.controller.enabled="1"
|
||||
if [ "$multiap_mode" == "agent" -o "$multiap_mode" == "none" ]; then
|
||||
uci set mapcontroller.controller.enabled="0"
|
||||
else
|
||||
uci set mapcontroller.controller.enabled="1"
|
||||
fi
|
||||
uci -q commit mapcontroller
|
||||
fi
|
||||
uci -q commit mapcontroller
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue