mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
use ap0 hack only on RPi hardware
This commit is contained in:
parent
f02e514cd1
commit
5ab9e0ff76
1 changed files with 4 additions and 4 deletions
|
@ -58,7 +58,7 @@
|
|||
- { src: 'hostapd/00-iiab-debug', dest: '/etc/networkd-dispatcher/routable.d/00-iiab-debug' }
|
||||
when: discovered_wireless_iface != "none" or discovered_wired_iface != "none"
|
||||
|
||||
- name: Create networkd-dispatcher hook for hostapd wifi_up_down True
|
||||
- name: Create networkd-dispatcher hook for ap0 on RPi hardware with wifi_up_down True
|
||||
template:
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -69,9 +69,9 @@
|
|||
- { src: 'hostapd/netd-disp', dest: '/etc/networkd-dispatcher/carrier.d/iiab-wifi' }
|
||||
- { src: 'hostapd/netd-disp', dest: '/etc/networkd-dispatcher/no-carrier.d/iiab-wifi' }
|
||||
- { src: 'hostapd/netd-disp2', dest: '/etc/networkd-dispatcher/routable.d/iiab-wifi2' }
|
||||
when: discovered_wireless_iface != "none" and wifi_up_down
|
||||
when: discovered_wireless_iface != "none" and rpi_model != "none" and wifi_up_down
|
||||
|
||||
- name: Remove networkd-dispatcher hook for wifi_up_down False
|
||||
- name: Remove networkd-dispatcher hook for ap0 on RPi hardware with wifi_up_down False
|
||||
file:
|
||||
path: "{{ item.dest }}"
|
||||
state: absent
|
||||
|
@ -80,7 +80,7 @@
|
|||
- { dest: '/etc/networkd-dispatcher/no-carrier.d/iiab-wifi' }
|
||||
- { dest: '/etc/networkd-dispatcher/routable.d/iiab-wifi' }
|
||||
- { dest: '/etc/networkd-dispatcher/routable.d/iiab-wifi2' }
|
||||
when: discovered_wireless_iface != "none" and not wifi_up_down
|
||||
when: discovered_wireless_iface != "none" and rpi_model != "none" and not wifi_up_down
|
||||
|
||||
- name: Reload systemd
|
||||
systemd:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue