1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

alter dhcpcd.conf for ap0

This commit is contained in:
Jerry Vonau 2018-09-08 22:55:18 +00:00
parent e2b5967a8d
commit 597cdda739

View file

@ -42,16 +42,12 @@ slaac private
# Always (try) to run DHCP client on RPi's Ethernet port, for in-field # Always (try) to run DHCP client on RPi's Ethernet port, for in-field
# "cablemodems" used by many non-technical operators, who want Zero-Hassle # "cablemodems" used by many non-technical operators, who want Zero-Hassle
# Updates. This means AVOIDING "denyinterfaces eth0" below: # Updates. This means AVOIDING "denyinterfaces eth0" below:
{% if is_raspbian and hostapd_enabled %} {% if is_rpi and hostapd_enabled %}
denyinterfaces{% if discovered_wireless_iface != "none" %} {{ discovered_wireless_iface }}{% endif %} denyinterfaces ap0
{% elif is_raspbian %} {% endif %}
#denyinterfaces{% if discovered_wireless_iface != "none" %} {{ discovered_wireless_iface }}{% endif %} {% if iiab_wired_lan_iface is defined %}
{% else %} denyinterfaces {{ iiab_wired_lan_iface }}
denyinterfaces{% if iiab_wireless_lan_iface is defined %} {{ iiab_wireless_lan_iface }}{% endif %}{% if iiab_wired_lan_iface is defined %} {{ iiab_wired_lan_iface }}{% endif %}
{% endif %} {% endif %}
# FYI this 'denyinterfaces' line (here in /etc/dhcpcd.conf) is commented out by
# /usr/bin/iiab-hotspot-off, and uncommented by /usr/bin/iiab-hotspot-on
{% if dhcpcd_result == "enabled" and iiab_lan_iface != "none" %} {% if dhcpcd_result == "enabled" and iiab_lan_iface != "none" %}
interface {{ iiab_lan_iface }} interface {{ iiab_lan_iface }}