sm-discuss AT lists.ibiblio.org
Subject: Public SourceMage Discussion List
List archive
- From: Juuso Alasuutari <iuso AT sourcemage.org>
- To: sm-discuss AT lists.ibiblio.org
- Subject: [SM-Discuss] wpa_supplicant init script
- Date: Mon, 15 May 2006 12:59:12 +0300
e-type asked about this on #sourcemage, so I thought it would be good to post
my wpa_supplicant init script here for others to see aswell.
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.
After launching the init script, you can start adding networks via wpa_cli
like so:
wpa_cli <interface> add_network
wpa_cli <interface> set_network 0 ssid '"<ssid_name>"'
wpa_cli <interface> set_network 0 ...blabla...
wpa_cli <interface> enable_network 0
You'll find more info in /usr/share/doc/wpa_supplicant/README at the bottom
of
the file. Notice that when using this init script, you don't need to start
wpa_supplicant in the background or add a new interface as that readme
suggests, you can start configuring networks right away.
In the attached tarball you'll find:
etc/init.d/runlevels/%3/wpa_supplicant
etc/sysconfig/wpa_supplicant
etc/wpa_ctrl.conf
...watch out where you unpack!
--
Juuso Alasuutari
[[ Source Mage GNU/Linux ]]
Attachment:
wpa_supplicant-init.tar.bz2
Description: application/tbz
Attachment:
pgpOXKwjxXU3E.pgp
Description: 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.