fix bug 266395

Do not stop wpa_supplicant or wpa_cli if they are in the background.
Thanks to Slava Gorbunov for the patch.
This commit is contained in:
William Hubbs 2010-08-18 12:22:15 -05:00
parent 89829f6d7c
commit 1a188f8f72

View File

@ -183,9 +183,11 @@ wpa_supplicant_post_stop()
fi fi
if yesno "${IN_BACKGROUND}"; then if yesno "${IN_BACKGROUND}"; then
# Don't stop wpa_supplicant & wpa_cli if in background
return 0
fi
# Only stop wpa_supplicant if it's not the controlling daemon # Only stop wpa_supplicant if it's not the controlling daemon
! service_started_daemon "${RC_SVCNAME}" "${wpas}" 1 ! service_started_daemon "${RC_SVCNAME}" "${wpas}" 1
fi
[ $? != 0 ] && return 0 [ $? != 0 ] && return 0
local pidfile="/var/run/wpa_cli-${IFACE}.pid" local pidfile="/var/run/wpa_cli-${IFACE}.pid"