Re: Problem setting up wired networking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Nov 14, 2008 at 03:40:17PM +0000, Timothy Murphy wrote:
> On Friday 14 November 2008 15:14:52 Dominik 'Rathann' Mierzejewski wrote:
> 
> > FWIW, using plain wpa_supplicant works for me just fine on a 901, and with
> > a little patching of the /etc/sysconfig/network-scripts/ifup-wireless,
> > I can even use the usual ifup/ifdown commands with my wifi interface.
> 
> How exactly did you patch the file?

Patch attached.

> I take it 901 means EeePC-901.

Yes.

> Are you running Fedora on it?

Yes.

> If so, which version?

F-10.

Regards,
R.

-- 
Dominik 'Rathann' Mierzejewski <rathann*at*icm.edu.pl>  |  LAN  Staff
Interdisciplinary Centre for Mathematical and Computational Modelling
Warsaw University  |  http://www.icm.edu.pl  |  tel. +48 (22) 5540810
--- ifup-wireless.orig	2005-09-30 20:51:15.000000000 +0200
+++ ifup-wireless	2006-04-07 16:09:01.000000000 +0200
@@ -30,6 +30,35 @@
 
 # Only meant to be called from ifup.
 
+if wpa_cli -i $DEVICE status >/dev/null 2>&1; then
+    eval $(wpa_cli -i${DEVICE} status | grep wpa_state 2>/dev/null) 
+    if [ "$wpa_state" != "COMPLETED" ]; then
+	/sbin/ip link set $DEVICE down
+	/sbin/ip link set $DEVICE up
+	wpa_cli scan >/dev/null 2>&1
+    fi
+    old_state=""
+    cnt=0
+    while true; do
+	eval $(wpa_cli -i${DEVICE} status | grep 'wpa_state|ssid' 2>/dev/null) 
+	if [ "$wpa_state" = "COMPLETED" ]; then
+	    echo $"Connected to $ssid"
+	    break
+	fi
+	if [ "$old_state" != "$wpa_state" ]; then
+	    echo -n "$wpa_state "
+	    old_state=$wpa_state
+	fi
+
+	sleep 1
+	cnt=$[$cnt + 1]
+	if [ $cnt -gt 90 ]; then
+	    echo -n $"Timeout "
+	    exit 10
+	fi
+    done 
+else
+
 # Mode need to be first : some settings apply only in a specific mode !
 if [ -n "$MODE" ] ; then
     iwconfig $DEVICE mode $MODE
@@ -97,3 +126,5 @@
     # use any essid
     iwconfig $DEVICE essid any >/dev/null 2>&1
 fi
+
+fi
-- 
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux