mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
Merge pull request #2470 from jvonau/no_iiab
No /etc/network/interfaces.d/iiab [fixes RPi 3 B+, allowing WiFi firmware & hostapd to launch reliably on boot]
This commit is contained in:
commit
bfd67f9713
2 changed files with 12 additions and 1 deletions
|
@ -41,6 +41,12 @@
|
|||
dest: /etc/network/interfaces.d/iiab
|
||||
src: network/rpi.j2
|
||||
#src: network/iiab.j2 2019-02-05: caused ./iiab-network to fail repeatedly in recent days on one particular RPi 3, even after reboot ("Unable to start service networking: Job for networking.service failed..." at "Restart the networking service if appropriate") ...leaving dnsmasq off (#1452)
|
||||
when: iiab_wired_lan_iface is defined
|
||||
|
||||
- name: Use bind-dynamic for dnsmasq
|
||||
template:
|
||||
dest: /etc/dnsmasq.d/dnsmasq-iiab
|
||||
src: network/dnsmasq-iiab
|
||||
when: iiab_lan_iface == "br0"
|
||||
|
||||
- name: Stopping services
|
||||
|
@ -60,6 +66,7 @@
|
|||
name: networking
|
||||
enabled: yes
|
||||
state: restarted
|
||||
when: iiab_wired_lan_iface is defined
|
||||
|
||||
- name: Restart hostapd when WiFi is present but not when using WiFi as gateway
|
||||
systemd:
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#IIAB
|
||||
{% if is_raspbian %}
|
||||
bind-dynamic
|
||||
{% else %}
|
||||
bind-interfaces
|
||||
# Wan nameserver if manually set
|
||||
{% endif %}
|
||||
{% if wan_nameserver is not none %}
|
||||
# Wan nameserver if manually set
|
||||
no-resolv
|
||||
server={{ wan_nameserver }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue