diff options
Diffstat (limited to 'net/wpa_supplicant.sh')
-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" |