From 47f12695633614ba7e7a9a4f0d39c2f3621263ea Mon Sep 17 00:00:00 2001 From: Tim Moody Date: Tue, 28 May 2019 14:04:04 -0400 Subject: [PATCH] hostapd fails to start if wifi connected to wan --- roles/network/templates/network/iiab-hotspot-on | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/network/templates/network/iiab-hotspot-on b/roles/network/templates/network/iiab-hotspot-on index 50bc74e9b..aa9d62500 100755 --- a/roles/network/templates/network/iiab-hotspot-on +++ b/roles/network/templates/network/iiab-hotspot-on @@ -1,6 +1,8 @@ #!/bin/bash cp -f /etc/hostapd/hostapd.conf.iiab /etc/hostapd/hostapd.conf sed -i -e "s/^#denyinterfaces/denyinterfaces/" /etc/dhcpcd.conf +# shut down wlan0 in case connected to network +ip link set wlan0 down systemctl enable hostapd #systemctl enable dnsmasq systemctl daemon-reload