accesspoints: added toggle to disable public wifi

also disabled public wifi on ANS till offloader works
add_site_ans
Gregor Michels 2022-11-12 21:38:27 +01:00
parent 7244b53d6d
commit e110320999
2 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,7 @@ ffl-ans-sw-access02
[site_ans:vars]
wifi_ssid="GU Arno-Nitzsche-Strasse"
wifi_encryption=none
wifi_disabled=1
backoffice_wifi_ssid="GU Arno-Nitzsche-Strasse Backoffice"
backoffice_wifi_encryption=psk2
backoffice_wifi_psk="{{ lookup('passwordstore', 'wifi/GU_Arno-Nitzsche-Straße_Backoffice') }}"

View File

@ -20,6 +20,7 @@ config wifi-iface 'default_radio0'
{% if wifi_psk is defined %}
option key '{{ wifi_psk }}'
{% endif %}
option disabled '{{ wifi_disabled | default(0) }}'
config wifi-iface 'backoffice_radio0'
option device 'radio0'
@ -53,6 +54,7 @@ config wifi-iface 'default_radio1'
{% if wifi_psk is defined %}
option key '{{ wifi_psk }}'
{% endif %}
option disabled '{{ wifi_disabled | default(0) }}'
config wifi-iface 'backoffice_radio1'
option device 'radio1'