aboutsummaryrefslogtreecommitdiff
path: root/hooks/10-wpa_supplicant
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2024-06-03 16:17:02 +0000
committerEd Maste <emaste@FreeBSD.org>2024-06-03 16:19:54 +0000
commit1b2aa3deeb0dbbace9fed635fa01b6f6e8480901 (patch)
treed4f991a92b1c7c84e264b900f50f2fa0202c872a /hooks/10-wpa_supplicant
parent96dba636abec6d5451820add99300bda2ca6d86a (diff)
Diffstat (limited to 'hooks/10-wpa_supplicant')
-rw-r--r--hooks/10-wpa_supplicant10
1 files changed, 5 insertions, 5 deletions
diff --git a/hooks/10-wpa_supplicant b/hooks/10-wpa_supplicant
index 04acce088840..e27ea170c532 100644
--- a/hooks/10-wpa_supplicant
+++ b/hooks/10-wpa_supplicant
@@ -102,12 +102,12 @@ wpa_supplicant_stop()
}
if [ "$ifwireless" = "1" ] && \
- type wpa_supplicant >/dev/null 2>&1 && \
- type wpa_cli >/dev/null 2>&1
+ command -v wpa_supplicant >/dev/null 2>&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