Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 24546 - Add wireless detection and configuration to net init script
Summary: Add wireless detection and configuration to net init script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2003-07-15 14:50 UTC by Faye Pearson
Modified: 2004-10-24 21:24 UTC (History)
1 user (show)

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


Attachments
patch to net script (wireless_patch,1.41 KB, patch)
2003-07-15 14:51 UTC, Faye Pearson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Faye Pearson 2003-07-15 14:50:51 UTC
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.
Comment 1 Faye Pearson 2003-07-15 14:51:58 UTC
Created attachment 14521 [details, diff]
patch to net script

as described in bug
Comment 2 Faye Pearson 2003-07-15 14:54:24 UTC
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 3 Faye Pearson 2003-07-17 04:03:04 UTC
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.
Comment 4 Florian Haskamp 2004-02-02 23:13:23 UTC
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 ...
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2004-10-24 21:24:06 UTC
wireless config is in baselayout-1.11.x, now marked ~arch