fastboot: wireless-tools: Make zzz-wireless.if-pre-up only for dhcp.
authorChia-I Wu <olv@openmoko.com>
Thu, 30 Oct 2008 08:16:33 +0000 (16:16 +0800)
committerJohn Lee <john_lee@openmoko.org>
Mon, 12 Jan 2009 06:29:32 +0000 (14:29 +0800)
packages/wireless-tools/wireless-tools/zzz-wireless.if-pre-up
packages/wireless-tools/wireless-tools_29.bb

index 4c8e95b..85fcc87 100644 (file)
@@ -15,7 +15,7 @@ RETRIES=15
 SLEEPTIME=1
 
 # Only sleep if we use DHCP (add others methods seperated by spaces)
-ONLY_FOR="static dhcp"
+ONLY_FOR="dhcp"
 
 if [ -z "$IF_WIRELESS_TYPE" ] && echo "$ONLY_FOR" | grep -q "$METHOD" ; then
        $IFCONFIG $IFACE up
@@ -25,7 +25,7 @@ if [ -z "$IF_WIRELESS_TYPE" ] && echo "$ONLY_FOR" | grep -q "$METHOD" ; then
                RETRIES=$(($RETRIES-1))
                $SLEEP $SLEEPTIME
        done
-       
+
        if [ $RETRIES -eq 0 ]; then
                $LOGGER Timeout waiting for association, continuing anyway...
        else