Skip to content

Commit

Permalink
hooks: stop wpa_supplicant on STOPPED
Browse files Browse the repository at this point in the history
Taken from Void Linux package
  • Loading branch information
rsmarples committed Apr 13, 2024
1 parent 9d2e7e7 commit 0fbd29b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hooks/10-wpa_supplicant
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0fbd29b

Please sign in to comment.