Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 218475 - sys-apps/openrc-0.2.2: error in iwconfig.sh when associate_order="forcepreferredonly"
Summary: sys-apps/openrc-0.2.2: error in iwconfig.sh when associate_order="forceprefer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 218729 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-19 20:05 UTC by Hernan Pastoriza
Modified: 2008-10-07 14:22 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix the issue (iwconfig.patch,1.12 KB, patch)
2008-04-20 10:26 UTC, Roy Marples
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hernan Pastoriza 2008-04-19 20:05:30 UTC
On starting a wireless connection and the access point is not broadcasting its essid the documentation indicates to use:
preferred_aps="ESSID1 ESSID2"
and
associate_order="forcepreferredonly"
It used to work in baselayout1 but with the openrc version
it has 2 problems: 
1) Seems to be an error on parsing the preferred_aps variable as  it fails if two or more aps are listed.
2) The init script complains on starting interfase



Reproducible: Always

Steps to Reproduce:
1. Setup Access Point not to announce SSID
2. set associate_order="forcepreferredonly" in /etc/conf.d/net
3. start interfase through /etc/init.d/net.iface script 

Actual Results:  
/lib/rc/net/iwconfig.sh: line 519: [: 0: unary operator expected
*   Connecting to "" in managed mode (WEP Disabled) ...                                                             [ ok ]
 *     wlan0 connected to SSID "" at xx:xx:xx:xx:xx

Note the empty string in the SSID printout. 
The association to the ap is successful however if only one ap is listed in the 
preferred_aps variable

Expected Results:  
No error in the script.
echoing the right ESSID.
Comment 1 Roy Marples 2008-04-20 10:26:24 UTC
Created attachment 150369 [details, diff]
Fix the issue

Does this patch fix things for you?
Comment 2 Roy Marples 2008-04-21 08:39:53 UTC
This has been fixed in openrc git repo
http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=eb75144d8326df4a28eae7f043e1130075483216
Comment 3 Hernan Pastoriza 2008-04-21 11:29:55 UTC
Thanks Roy. Now it works as espected.
Comment 4 SpanKY gentoo-dev 2008-04-21 18:20:04 UTC
*** Bug 218729 has been marked as a duplicate of this bug. ***
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-04-22 12:58:51 UTC
This bug is not fixed in the tree, so it's a bit too early to close it.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2008-10-07 14:22:15 UTC
Fixed in 0.3.0.