From: Roy Marples Date: Sat, 13 Apr 2024 10:16:58 +0000 (+0100) Subject: hooks: stop wpa_supplicant on STOPPED X-Git-Tag: v10.0.7~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fbd29b0b91e29dd443d0ea13221df906fc9da15;p=thirdparty%2Fdhcpcd.git hooks: stop wpa_supplicant on STOPPED Taken from Void Linux package --- 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