Wireless can be provided by pci, pcmcia, cardbus or usb.. the only common factor is the net script which is started by all of them. This change adds a variable wireless_IFACE which is set depending on existence of iwconfig, and that IFACE has wireless extensions. In start, if wireless_IFACE is yes then it calls a function setup_wireless which will do an iwlist and for each access point found, looks for essid_<essid found> and key_<essid found> at the end of the loop, the essid and key are set to the values discovered. If the interface isn't wireless then the function won't be called and the script works as usual.
Created attachment 14521 [details, diff] patch to net script as described in bug
Comment on attachment 14521 [details, diff] patch to net script essid_zippysoftbase="zippysoft-base" key_zippysoftbase="hex key would be here" essid_claranet="claranet" key_claranet="hex key here" iface_ath0="dhcp" as you can see it would work where the access point was detected on any interface!
Comment on attachment 14521 [details, diff] patch to net script I made a mistake in the script, the return 0's shouldn't be there, but the return 1 should be a return 0.
Maybe one of these scripts: http://forums.gentoo.org/viewtopic.php?p=825688 or http://forums.gentoo.org/viewtopic.php?t=122435 should be used - I think they look a little bit "cleaner" in configuration. The second script seems to be already tested by some people (as there are a lot of comments in the forum-thread). BTW: Wireless config should REALLY be added to the default baselayout - this bug is open since 2003-07 ...
wireless config is in baselayout-1.11.x, now marked ~arch