From 13e25494c0047089501ff7fc6d1a766db572a684 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 1 Aug 2020 00:05:31 -0500 Subject: [PATCH] RPiOS - use dhcpcd hooks to restart hostapd when br0 appears --- roles/network/templates/hostapd/50-hostapd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/network/templates/hostapd/50-hostapd b/roles/network/templates/hostapd/50-hostapd index 601f8660a..d3741e1ab 100644 --- a/roles/network/templates/hostapd/50-hostapd +++ b/roles/network/templates/hostapd/50-hostapd @@ -1,3 +1,7 @@ +if [ "$interface" = "br0" ] && [ $if_up = "true" ]; then + sleep 2 + systemctl restart dnsmasq +fi if [ "$interface" = "wlan0" ]; then REASON="$reason"