diff options
Diffstat (limited to 'hooks/10-wpa_supplicant')
-rw-r--r-- | hooks/10-wpa_supplicant | 10 |
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 |