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