diff --git a/roles/network/templates/network/iiab-hotspot-off b/roles/network/templates/network/iiab-hotspot-off index 0bb81e8f2..59301a55b 100755 --- a/roles/network/templates/network/iiab-hotspot-off +++ b/roles/network/templates/network/iiab-hotspot-off @@ -2,8 +2,8 @@ sed -i -e "s/^denyinterfaces/#denyinterfaces/" /etc/dhcpcd.conf systemctl disable hostapd systemctl stop hostapd -systemctl disable dhcpd -systemctl stop dhcpd +systemctl disable dnsmasq +systemctl stop dnsmasq systemctl daemon-reload systemctl restart dhcpcd systemctl restart networking diff --git a/roles/network/templates/network/iiab-hotspot-on b/roles/network/templates/network/iiab-hotspot-on index 5d225abeb..10cebc660 100755 --- a/roles/network/templates/network/iiab-hotspot-on +++ b/roles/network/templates/network/iiab-hotspot-on @@ -2,12 +2,12 @@ cp -f /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf sed -i -e "s/^#denyinterfaces/denyinterfaces/" /etc/dhcpcd.conf systemctl enable hostapd -systemctl enable dhcpd +systemctl enable dnsmasq systemctl daemon-reload systemctl restart dhcpcd systemctl restart networking systemctl start hostapd -systemctl start dhcpd +systemctl start dnsmasq # Temporary promiscuous-mode workaround for RPi's WiFi "10SEC disease" # Disable "promiscuous" on wlan0 when AP (i.e. no WiFi gateway)