]> git.openpandora.org Git - openembedded.git/commitdiff
wireless-tools: do ifconfig down before the ifconfig up is done.
authorMike Westerhof <mwester@dls.net>
Fri, 20 Mar 2009 03:32:00 +0000 (22:32 -0500)
committerMike Westerhof <mwester@dls.net>
Fri, 20 Mar 2009 03:32:00 +0000 (22:32 -0500)
Required to reliably re-initialize the interface if it was running previously.

recipes/wireless-tools/wireless-tools/zzz-wireless.if-pre-up
recipes/wireless-tools/wireless-tools_29.bb

index 85fcc87a99986d4403fab3085b2bc8366a7e89c6..29a26633f7c13c8bb1aad473bfc87504fb42a297 100644 (file)
@@ -18,6 +18,8 @@ SLEEPTIME=1
 ONLY_FOR="dhcp"
 
 if [ -z "$IF_WIRELESS_TYPE" ] && echo "$ONLY_FOR" | grep -q "$METHOD" ; then
+       $IFCONFIG $IFACE down
+       $SLEEP 1
        $IFCONFIG $IFACE up
        $LOGGER Checking for WLAN association...
        while ( [ $RETRIES -gt 0 ] && ($IWCONFIG "$IFACE" | $GREP -q "Access Point: Not-Associated") ); do
index e5c498bbfaaf344e4ffcbbeb6ae4a47bbf7ee2cd..c83ae175e0ce1582abc28bebf01d1365543cabd6 100644 (file)
@@ -1,3 +1,3 @@
 require wireless-tools.inc
 
-PR = "r1"
+PR = "r2"