sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
Re: [SM-Discuss] wpa_supplicant structure....was: wpa_supplicant init script
- From: Eric Sandall <eric AT sandall.us>
- To: SM-Discuss <sm-discuss AT lists.ibiblio.org>
- Subject: Re: [SM-Discuss] wpa_supplicant structure....was: wpa_supplicant init script
- Date: Mon, 15 May 2006 10:12:03 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pieter Lenaerts wrote:
> Op ma, 15-05-2006 te 12:59 +0300, schreef Juuso Alasuutari:
>> It launches a wpa_supplicant daemon that opens a global control interface
>> (default is /var/run/wpa_supplicant-global). wpa_supplicant can then be
>> controlled via wpa_cli. Users that belong to the group defined
>> in /etc/wpa_ctrl.conf have wpa_cli access. Network interface, device
>> driver,
>> control interface and config file are defined
>> in /etc/sysconfig/wpa_supplicant.
>
> my tactics:
> I have a fully configured wpa_supplicant.conf, which includes the
> ctrl_group stuff iuso has but also defines all my networks (see
> attachments), so upon running wpa_supplicant, it will associate to the
> highest priority known network.
>
> next, there's wpa_cli that can be run with an action script. if wpa_cli
> receives a disconnect/connect event, it will run the script with
> interface name and event name as arguments. what the script does is:
> check if it's a connect event or a disconnect event, check the ssid
> wpa_supplicant is connected to and call dhcpcd or set network settings
> manually.
>
> right now, my script is UGLY! all vars are hardcoded. a solution would
> be this: have an /etc/wpa_supplicant folder holding all wpa_supplicant
> config files + a config file for every ssid. on a connect event, the
> action script sources the ssid config file and sets connection options.
>
> so, this would be our (optional) structure:
> 1. iuso's init script, with additions to run wpa_cli with action script
> and reassociation command to make sure we get an event.
> 2. an /etc/wpa_supplicant/wpa_supplicant.conf file, holding config and
> network association options for wpa_supplicant
> 3. a series of /etc/wpa_supplicant/<ssid> files, holding variables for
> each ssid configured in wpa_supplicant.conf (these would resemble our
> current netconf generated files)
> 4. an action script in /etc/wpa_supplicant.conf that sources the ssid
> files and gets the interface up (or down on a disconnect event)
>
> we need more thoughts ;)
<snip>
Perhaps those who use WPA for wireless should get together and hash out
what works, though what Pieter proposes above (additionally to Juuso's)
sounds acceptable, once cleaned up. :)
- -sandalle
- --
Eric Sandall | Source Mage GNU/Linux Developer
eric AT sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEaLZjHXt9dKjv3WERAkowAJ9dHIhJPX3O++NmOyv/l4EjShrIPQCaAh6N
PlMDq7eiKT4zpaxgU3yHUt0=
=s56T
-----END PGP SIGNATURE-----
-
[SM-Discuss] wpa_supplicant init script,
Juuso Alasuutari, 05/15/2006
-
Re: [SM-Discuss] wpa_supplicant structure....was: wpa_supplicant init script,
Pieter Lenaerts, 05/15/2006
-
Re: [SM-Discuss] wpa_supplicant structure....was: wpa_supplicant init script,
Eric Sandall, 05/15/2006
-
Re: [SM-Discuss] wpa_supplicant structure....was: wpa_supplicant init script,
Pieter Lenaerts, 05/15/2006
- Re: [SM-Discuss] wpa_supplicant structure....was:wpa_supplicant init script, Mads Laursen, 05/20/2006
-
Re: [SM-Discuss] wpa_supplicant structure....was: wpa_supplicant init script,
Pieter Lenaerts, 05/15/2006
-
Re: [SM-Discuss] wpa_supplicant structure....was: wpa_supplicant init script,
Eric Sandall, 05/15/2006
-
Re: [SM-Discuss] wpa_supplicant structure....was: wpa_supplicant init script,
Pieter Lenaerts, 05/15/2006
Archive powered by MHonArc 2.6.24.