From 6e29ed1c3a98630adbc55b29a14d21941147d8b9 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 1 Aug 2020 11:08:02 -0500 Subject: [PATCH] RPiOS - use 'no-block' with dhcpcd --- roles/network/templates/hostapd/50-hostapd | 3 ++- roles/network/templates/network/dnsmasq.sh.j2 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roles/network/templates/hostapd/50-hostapd b/roles/network/templates/hostapd/50-hostapd index d3741e1ab..603f570a8 100644 --- a/roles/network/templates/hostapd/50-hostapd +++ b/roles/network/templates/hostapd/50-hostapd @@ -1,6 +1,7 @@ if [ "$interface" = "br0" ] && [ $if_up = "true" ]; then + syslog info "50-iiab IF_UP br0 restarting dnsmasq" sleep 2 - systemctl restart dnsmasq + systemctl --no-block restart dnsmasq fi if [ "$interface" = "wlan0" ]; then diff --git a/roles/network/templates/network/dnsmasq.sh.j2 b/roles/network/templates/network/dnsmasq.sh.j2 index 1969f8da5..00df42bf3 100755 --- a/roles/network/templates/network/dnsmasq.sh.j2 +++ b/roles/network/templates/network/dnsmasq.sh.j2 @@ -3,5 +3,5 @@ if [ "$IFACE" == "{{ iiab_lan_iface }}" ]; then echo "Restarting dnsmasq in 5 seconds" /bin/sleep 5 && /bin/systemctl --no-block restart dnsmasq.service - echo "Restarting dnsmasq" + echo "Restarted dnsmasq" fi