X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=blobdiff_plain;f=src%2Finitscripts%2Finit.d%2Fwlanclient;h=ee24c43a19a68e52cedf4ad652f46d1ffe8e9255;hp=80be8f987c18b4f2eefc1e8055db13d3e8e3302a;hb=71ea0d688d77705e53dae8931b1c3e2b477ed8fa;hpb=61027579bbb5822d06ac41c7cdf259c49377b837 diff --git a/src/initscripts/init.d/wlanclient b/src/initscripts/init.d/wlanclient index 80be8f987c..ee24c43a19 100755 --- a/src/initscripts/init.d/wlanclient +++ b/src/initscripts/init.d/wlanclient @@ -240,8 +240,15 @@ function wpa_supplicant_stop() { boot_mesg "Stopping wireless event handler on ${RED_DEV}..." killproc wpa_cli + # wpa_cli does not send a disconnect event when get stopped. + # So we manually have to send it to the wpa_supplicant.exe. + /etc/rc.d/init.d/networking/wpa_supplicant.exe "${RED_DEV}" DISCONNECTED + boot_mesg "Stopping wireless client on ${RED_DEV}..." killproc wpa_supplicant + + # Tidy up /tmp directory. + rm -f /tmp/wpa_ctrl_* } case "${1}" in