diff options
Diffstat (limited to 'net/wpa_supplicant.sh')
-rw-r--r-- | net/wpa_supplicant.sh | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh index 9f024c0..b508511 100644 --- a/net/wpa_supplicant.sh +++ b/net/wpa_supplicant.sh @@ -42,13 +42,9 @@ fi wpa_supplicant_pre_start() { local opts= cliopts= cfgfile= ctrl_dir= wireless=true - local wpas=/usr/sbin/wpa_supplicant wpac=/usr/bin/wpa_cli + local wpas=wpa_supplicant wpac=wpa_cli local actfile=/etc/wpa_supplicant/wpa_cli.sh - if [ ! -x "${wpas}" ]; then - wpas=/sbin/wpa_supplicant - wpac=/bin/wpa_cli - fi [ "${RC_UNAME}" = "Linux" ] || unset wpac [ -e "${actfile}" ] || unset wpac @@ -182,12 +178,7 @@ wpa_supplicant_pre_start() wpa_supplicant_post_stop() { - local wpas=/usr/sbin/wpa_supplicant wpac=/usr/bin/wpa_cli - - if [ ! -x "${wpas}" ]; then - wpas=/sbin/wpa_supplicant - wpac=/bin/wpa_cli - fi + local wpas=wpa_supplicant wpac=wpa_cli if yesno "${IN_BACKGROUND}"; then # Only stop wpa_supplicant if it's not the controlling daemon |