1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

softcode apo_mac_addr

This commit is contained in:
Jerry Vonau 2018-12-02 23:16:08 -06:00
parent 188407614c
commit 79a829dabe
3 changed files with 37 additions and 2 deletions

View file

@ -97,6 +97,41 @@ wondershaper_upspeed: "1024"
# Unused
# network_config_dir: /etc/network/interfaces.d
# Wi-Fi
host_ssid: IIAB
hostapd_wait: 1
host_wifi_mode: g
host_channel: 6
host_wireless_n: False
ap0_mac_addr: b8:27:99:12:34:56
# Below moved to /etc/iiab/local_vars.yml: (so implementer sets this)
#host_country_code: US
hostapd_secure: True
hostapd_password: "iiab2017"
driver_name: nl80211
hostapd_enabled: True
# Above is forcibly set to False (in roles/network/tasks/main.yml) if IIAB is
# being WiFi-installed (run "iiab-hotspot-on" AFTER ./iiab-install completes
# and content is downloaded, to enable the internal WiFi Access Point / AP!)
reboot_to_AP: False
# For those installing IIAB over WiFi: "reboot_to_AP: True" overrides the above
# detection of WiFi-as-gateway, forcing "hostapd_enabled: True" regardless.
network_config_dir: /etc/network/interfaces.d
#iiab_network_mode: "Gateway"
dns_jail_enabled: False
services_externally_visible: False
# DNS / name resolution
dhcpd_install: True
dhcpd_enabled: False
#dhcp_service: ???? # Set in individual OS's /opt/iiab/iiab/vars/<OS>.yml for use in roles/network/tasks/dhcpd.yml
#dhcp_service2: "dhcpd disabled" # Moved to roles/network/tasks/computed_services.yml as community transitions from named/BIND to dnsmasq (PR #1202)
named_install: True
named_enabled: False
dnsmasq_enabled: True
dnsmasq_install: True
# Originally for @tim-moody's Nodogsplash approach to Captive Portal
# Highly experimental as of June 2018: https://github.com/iiab/iiab/issues/608
#

View file

@ -1,3 +1,3 @@
SUBSYSTEM=="ieee80211", ACTION=="add|change", KERNEL=="phy0", \
RUN+="/sbin/iw phy phy0 interface add ap0 type __ap", \
RUN+="/sbin/ip link set ap0 address b8:27:99:12:34:56"
RUN+="/sbin/ip link set ap0 address {{ ap0_mac_addr }}"

View file

@ -7,7 +7,7 @@ Before=network.target dhcpcd.service
Type=idle
PIDFile=/run/hostapd.pid
ExecStartPre=/sbin/iw phy phy0 interface add ap0 type __ap 2>1 > /dev/null
ExecStartPre=/sbin/ip link set ap0 address b8:27:99:12:34:56 2>1 > /dev/null
ExecStartPre=/sbin/ip link set ap0 address {{ ap0_mac_addr }} 2>1 > /dev/null
ExecStart=/usr/sbin/hostapd -P /run/hostapd.pid /etc/hostapd/hostapd.conf
[Install]