From patchwork Thu Sep 29 13:19:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: wpa-supplicant: Fix wpa-supplicant not exiting. Date: Thu, 29 Sep 2011 13:19:10 -0000 From: =?utf-8?b?U8O4cmVuIEhvbG0gPHNnaEBzZ2guZGs+?= X-Patchwork-Id: 12403 Message-Id: <1317302350-8193-1-git-send-email-sgh@sgh.dk> To: openembedded-devel@lists.openembedded.org From: Søren Holm 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(-) 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