Patchwork wpa-supplicant: Fix wpa-supplicant not exiting.

login
register
mail settings
Submitter Søren Holm
Date Sept. 29, 2011, 1:19 p.m.
Message ID <1317302350-8193-1-git-send-email-sgh@sgh.dk>
Download mbox | patch
Permalink /patch/12403/
State New, archived
Headers show

Comments

Søren Holm - Sept. 29, 2011, 1:19 p.m.
From: Søren Holm <sgh@sgh.dk>

woa-supplicant keps running if conenction to a network fails
getting an ip. ifup will then not call the post-down-script.

The solution is to add the script to down-sripts.
---
 recipes/wpa-supplicant/wpa-supplicant-0.7.inc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch

diff --git a/recipes/wpa-supplicant/wpa-supplicant-0.7.inc b/recipes/wpa-supplicant/wpa-supplicant-0.7.inc
index 722f5fa..9be28ba 100644
--- a/recipes/wpa-supplicant/wpa-supplicant-0.7.inc
+++ b/recipes/wpa-supplicant/wpa-supplicant-0.7.inc
@@ -8,7 +8,7 @@  LIC_FILES_CHKSUM = "file://../COPYING;md5=c54ce9345727175ff66d17b67ff51f58 \
                     file://wpa_supplicant.c;beginline=1;endline=17;md5=acdc5a4b0d6345f21f136eace747260e"
 DEPENDS = "gnutls dbus libnl openssl ${@base_contains("COMBINED_FEATURES", "madwifi", "madwifi-ng", "",d)}"
 RRECOMMENDS_${PN} = "wpa-supplicant-passphrase wpa-supplicant-cli"
-INC_PR = "r7"
+INC_PR = "r8"
 
 SRC_URI = "http://hostap.epitest.fi/releases/wpa_supplicant-${PV}.tar.gz \
            file://defconfig \
@@ -71,6 +71,7 @@  do_install () {
 	install -m 755 ${WORKDIR}/wpa-supplicant.sh ${D}${sysconfdir}/network/if-pre-up.d/wpa-supplicant
 	cd ${D}${sysconfdir}/network/ && \
 	ln -sf ../if-pre-up.d/wpa-supplicant if-post-down.d/wpa-supplicant
+	ln -sf ../if-pre-up.d/wpa-supplicant if-down.d/wpa-supplicant
 
 	install -d ${D}/etc/default/volatiles
 	install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles