From 699e898221ed43ed26b0ac3aa4b512fccf983fdb Mon Sep 17 00:00:00 2001 From: Daniel Kulp Date: Sun, 5 Nov 2023 17:36:01 -0500 Subject: [PATCH] Maybe fix wifi issue on Pi, not really sure --- etc/networkd-dispatcher/routable.d/check_tether | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/networkd-dispatcher/routable.d/check_tether b/etc/networkd-dispatcher/routable.d/check_tether index 71ffaf6d0..4aed50b6e 100755 --- a/etc/networkd-dispatcher/routable.d/check_tether +++ b/etc/networkd-dispatcher/routable.d/check_tether @@ -28,10 +28,10 @@ if [ "${TetherEnabled}" == "0" ]; then fi if [ "${TetherInterface}" != "${IFACE}" ]; then - rm -f "/etc/systemd/network/10-${TetherInterface}.network" - networkctl down "${TetherInterface}" HostAPDEnabled=$(systemctl is-enabled hostapd) if [ "${HostAPDEnabled}" != "disabled" ]; then + rm -f "/etc/systemd/network/10-${TetherInterface}.network" + networkctl down "${TetherInterface}" systemctl stop hostapd.service systemctl disable hostapd systemctl reload-or-restart systemd-networkd.service