summaryrefslogtreecommitdiff
path: root/recipes/wireless-tools
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2009-03-19 22:32:00 -0500
committerMike Westerhof <mwester@dls.net>2009-03-19 22:32:00 -0500
commit295488d84cc0b856e97a6fab0d725d33e5e55873 (patch)
tree1a6b54afe4e8e7eddc7caa34edcc888256f699ce /recipes/wireless-tools
parent1be4426d9dbf8fca09bedab7512f03031223777a (diff)
wireless-tools: do ifconfig down before the ifconfig up is done.
Required to reliably re-initialize the interface if it was running previously.
Diffstat (limited to 'recipes/wireless-tools')
-rw-r--r--recipes/wireless-tools/wireless-tools/zzz-wireless.if-pre-up2
-rw-r--r--recipes/wireless-tools/wireless-tools_29.bb2
2 files changed, 3 insertions, 1 deletions
diff --git a/recipes/wireless-tools/wireless-tools/zzz-wireless.if-pre-up b/recipes/wireless-tools/wireless-tools/zzz-wireless.if-pre-up
index 85fcc87a99..29a26633f7 100644
--- a/recipes/wireless-tools/wireless-tools/zzz-wireless.if-pre-up
+++ b/recipes/wireless-tools/wireless-tools/zzz-wireless.if-pre-up
@@ -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
diff --git a/recipes/wireless-tools/wireless-tools_29.bb b/recipes/wireless-tools/wireless-tools_29.bb
index e5c498bbfa..c83ae175e0 100644
--- a/recipes/wireless-tools/wireless-tools_29.bb
+++ b/recipes/wireless-tools/wireless-tools_29.bb
@@ -1,3 +1,3 @@
require wireless-tools.inc
-PR = "r1"
+PR = "r2"