| View previous topic :: View next topic |
| Author |
Message |
zigver Tux's lil' helper


Joined: 09 May 2003 Posts: 87
|
Posted: Sun Apr 16, 2006 1:28 am Post subject: [SOLVED] bash breaks wpa_supplicant? |
|
|
Upgrading bash to latest stable (3.1_p16) breaks wpa_supplicant for me. Dropping back to 3.0 versions of bash results in wpa_supplicant working just fine.
Didn't see anything posted on this yet so am I the only one having this problem?
Last edited by zigver on Mon Apr 17, 2006 3:19 pm; edited 1 time in total |
|
| Back to top |
|
 |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Sun Apr 16, 2006 3:47 am Post subject: |
|
|
Yes ... I am experiencing the same problem ...
apparently, 3.1 handles array assignments differently from the older versions.
take a look at /lib/rcscripts/net.modules.d/wpa_supplicant
change the line in wpa_supplicant_associated() to
local -a status=( $( wpa_cli -i${1} status | awk -F= '/^key_mgmt|^wpa_state|^EAP state/ { print ""$2"" }' ) )
partially fixes the problem for me ... it seems that certain double quotes(") are problematic ... the script will at least not running into a dead loop without grepping the associated status and time out. |
|
| Back to top |
|
 |
John-Boy Guru


Joined: 23 Jun 2004 Posts: 436 Location: Desperately seeking Moksha in all the wrong places
|
Posted: Sun Apr 16, 2006 7:04 am Post subject: |
|
|
Many thanks for the tip, that's got it going for me. _________________ When you break rules, break 'em good and hard |
|
| Back to top |
|
 |
stivani n00b

Joined: 19 Mar 2006 Posts: 9 Location: Belgium
|
Posted: Sun Apr 16, 2006 7:08 am Post subject: |
|
|
I have the same problem.
bash-3.1_p16
wpa_supplicant-0.4.8
The workaround suggested bij salivian works for me. |
|
| Back to top |
|
 |
shugaa Tux's lil' helper


Joined: 18 Apr 2003 Posts: 87
|
Posted: Sun Apr 16, 2006 9:04 am Post subject: |
|
|
Same problem here after the bash update. The fix suggested by salivian works fine for me.
Thank you!! |
|
| Back to top |
|
 |
WFrag n00b

Joined: 16 Apr 2006 Posts: 2
|
|
| Back to top |
|
 |
ronmon Veteran


Joined: 15 Apr 2002 Posts: 1043 Location: Key West, FL
|
Posted: Sun Apr 16, 2006 1:56 pm Post subject: |
|
|
Apparently it has already been changed in baselayout-1.12.0_pre17. The file is now called wpa_supplicant.sh (.sh appended) and contains the fix that WFrag linked to. wpa is working fine for me. _________________ Ask Questions the Smart Way - by ESR |
|
| Back to top |
|
 |
BlackWolfie n00b

Joined: 11 Oct 2003 Posts: 4
|
Posted: Sun Apr 16, 2006 7:44 pm Post subject: |
|
|
Had the same problem this morning. This solution worked for me. Thanks.  _________________ -- espresso yourself -- |
|
| Back to top |
|
 |
blubbi Guru


Joined: 27 Apr 2003 Posts: 544 Location: Halle (Saale), Germany
|
Posted: Sun Apr 16, 2006 10:52 pm Post subject: |
|
|
Same problem here.
That fixed it.
Thanks a lot!
regards
blubbi |
|
| Back to top |
|
 |
salivian Tux's lil' helper


Joined: 15 Sep 2002 Posts: 91
|
Posted: Mon Apr 17, 2006 1:40 am Post subject: |
|
|
This is the official bug that tracks the problem. The dev patches are there too.
http://bugs.gentoo.org/show_bug.cgi?id=130104
by the way, I can say that the new baselayout-1.12.0_pre17 works well too, but there is quite a bit of init script architecture change too. |
|
| Back to top |
|
 |
zigver Tux's lil' helper


Joined: 09 May 2003 Posts: 87
|
Posted: Mon Apr 17, 2006 3:19 pm Post subject: |
|
|
| Thanks salivain, work around fixed it. |
|
| Back to top |
|
 |
|