From 0fbd29b0b91e29dd443d0ea13221df906fc9da15 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 13 Apr 2024 11:16:58 +0100 Subject: [PATCH] hooks: stop wpa_supplicant on STOPPED Taken from Void Linux package --- hooks/10-wpa_supplicant | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/10-wpa_supplicant b/hooks/10-wpa_supplicant index 1da0108d..e27ea170 100644 --- a/hooks/10-wpa_supplicant +++ b/hooks/10-wpa_supplicant @@ -106,8 +106,8 @@ if [ "$ifwireless" = "1" ] && \ command -v wpa_cli >/dev/null 2>&1 then case "$reason" in - PREINIT) wpa_supplicant_start;; - RECONFIGURE) wpa_supplicant_reconfigure;; - DEPARTED) wpa_supplicant_stop;; + PREINIT) wpa_supplicant_start;; + RECONFIGURE) wpa_supplicant_reconfigure;; + DEPARTED|STOPPED) wpa_supplicant_stop;; esac fi -- 2.47.2