diff options
author | William Hubbs <williamh@gentoo.org> | 2010-08-18 12:22:15 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2010-08-18 15:01:23 -0500 |
commit | 1a188f8f725186b2c2d6d7c67e79c2ff5ea9d05e (patch) | |
tree | 491630f883140c81165577d0fbfe4af243fad3f6 /net | |
parent | 89829f6d7c13fa43fc81dc1f2174bce40fc50389 (diff) |
fix bug 266395
Do not stop wpa_supplicant or wpa_cli if they are in the background.
Thanks to Slava Gorbunov for the patch.
Diffstat (limited to 'net')
-rw-r--r-- | net/wpa_supplicant.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/wpa_supplicant.sh b/net/wpa_supplicant.sh index f4ca7d62..24ecdb13 100644 --- a/net/wpa_supplicant.sh +++ b/net/wpa_supplicant.sh @@ -183,9 +183,11 @@ wpa_supplicant_post_stop() fi if yesno "${IN_BACKGROUND}"; then - # Only stop wpa_supplicant if it's not the controlling daemon - ! service_started_daemon "${RC_SVCNAME}" "${wpas}" 1 + # Don't stop wpa_supplicant & wpa_cli if in background + return 0 fi + # Only stop wpa_supplicant if it's not the controlling daemon + ! service_started_daemon "${RC_SVCNAME}" "${wpas}" 1 [ $? != 0 ] && return 0 local pidfile="/var/run/wpa_cli-${IFACE}.pid" |