mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
manually_toggle_AP: True -> hostapd_enabled: False
This commit is contained in:
parent
4272185a88
commit
f6e3d6830b
1 changed files with 2 additions and 2 deletions
|
@ -59,14 +59,14 @@
|
|||
|
||||
- name: Checking if WiFi slave is active
|
||||
shell: brctl show br0 | grep {{ iiab_wireless_lan_iface }} | wc -l
|
||||
when: iiab_wireless_lan_iface is defined and iiab_lan_iface == "br0" and hostapd_enabled
|
||||
when: hostapd_enabled and iiab_wireless_lan_iface is defined and iiab_lan_iface == "br0"
|
||||
register: wifi_slave
|
||||
|
||||
- name: Restart hostapd if WiFi slave is inactive
|
||||
service:
|
||||
name: hostapd.service
|
||||
state: restarted
|
||||
when: hostapd_enabled and not manually_toggle_AP and wifi_slave.stdout is defined and wifi_slave.stdout == 0
|
||||
when: hostapd_enabled and wifi_slave.stdout is defined and wifi_slave.stdout == 0
|
||||
|
||||
- name: dhcp_server may be affected - starting - user choice
|
||||
service:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue