From 3c3affb16a907e46e0ef32fdf8f0ac9f4a15bfb7 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Wed, 19 Apr 2023 10:44:39 -0500 Subject: [PATCH] softcode --- roles/network/templates/hostapd/netd-disp2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/network/templates/hostapd/netd-disp2 b/roles/network/templates/hostapd/netd-disp2 index 7b9218899..e6a8fca72 100644 --- a/roles/network/templates/hostapd/netd-disp2 +++ b/roles/network/templates/hostapd/netd-disp2 @@ -13,8 +13,8 @@ if [ "$IFACE" == "{{ discovered_wireless_iface }}" ]; then systemctl stop wpa_supplicant systemctl restart hostapd systemctl start wpa_supplicant - if [ -f /run/netplan/wpa-wlan0.conf ]; then - systemctl restart netplan-wpa-wlan0.service + if [ -f /run/netplan/wpa-$IFACE.conf ]; then + systemctl restart netplan-wpa-$IFACE.service fi else echo "Upstream Channel greater than 13 or is the same - not changing hostapd.conf"