]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
hooks: stop wpa_supplicant on STOPPED
authorRoy Marples <roy@marples.name>
Sat, 13 Apr 2024 10:16:58 +0000 (11:16 +0100)
committerRoy Marples <roy@marples.name>
Sat, 13 Apr 2024 10:16:58 +0000 (11:16 +0100)
Taken from Void Linux package

hooks/10-wpa_supplicant

index 1da0108dc64a914fe3621c195a528e17bed6a64f..e27ea170c53223d0e1335dafcf871029593e0d2f 100644 (file)
@@ -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