mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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
|
dest: /etc/network/interfaces.d/iiab
|
||||||
src: network/rpi.j2
|
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)
|
#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"
|
when: iiab_lan_iface == "br0"
|
||||||
|
|
||||||
- name: Stopping services
|
- name: Stopping services
|
||||||
|
@ -60,6 +66,7 @@
|
||||||
name: networking
|
name: networking
|
||||||
enabled: yes
|
enabled: yes
|
||||||
state: restarted
|
state: restarted
|
||||||
|
when: iiab_wired_lan_iface is defined
|
||||||
|
|
||||||
- name: Restart hostapd when WiFi is present but not when using WiFi as gateway
|
- name: Restart hostapd when WiFi is present but not when using WiFi as gateway
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
#IIAB
|
#IIAB
|
||||||
|
{% if is_raspbian %}
|
||||||
|
bind-dynamic
|
||||||
|
{% else %}
|
||||||
bind-interfaces
|
bind-interfaces
|
||||||
# Wan nameserver if manually set
|
{% endif %}
|
||||||
{% if wan_nameserver is not none %}
|
{% if wan_nameserver is not none %}
|
||||||
|
# Wan nameserver if manually set
|
||||||
no-resolv
|
no-resolv
|
||||||
server={{ wan_nameserver }}
|
server={{ wan_nameserver }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue