You are not logged in.

#1 2008-11-06 19:31:11

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Roaming mode with wpa_supplicant - equivalent on Arch?

I just discovered this, a way of using wpa_supplicant to autoconnect to the strongest available (unencrypted) network... Problem is, Arch Linux doesn't have /etc/network. What's the equivalent of this in Arch?

(Also, would it be possible to implement something like this with netcfg? I've been looking at the wiki but there doesn't seem to be anything on netcfg and roaming...)

Offline

#2 2008-11-06 21:37:43

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Roaming mode with wpa_supplicant - equivalent on Arch?

You could try using autowifi:
http://wiki.archlinux.org/index.php/Autowifi

Offline

#3 2008-11-07 01:51:45

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Roaming mode with wpa_supplicant - equivalent on Arch?

I'd rather not, it appears to be unmaintained; and wpa_supplicant looks more versatile. All I need to figure out is what the Arch equivalent to /etc/network is...

Offline

#4 2008-11-07 02:18:11

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Roaming mode with wpa_supplicant - equivalent on Arch?

/etc/network/interfaces you mention belongs to a Debain specific set of scripts called ifupdown -- see point 10.6 here.  I don't know if there is an exact equivalent for this in Arch.

Offline

#5 2008-11-07 23:38:39

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Roaming mode with wpa_supplicant - equivalent on Arch?

Shouldn't there be? IIRC Redhat uses the same format for stuff in /etc/sysconfig/network... If Arch has no way of telling wpa_supplicant to use roaming mode, it could be considered a bug.

Anyone?

Offline

#6 2008-11-07 23:41:09

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: Roaming mode with wpa_supplicant - equivalent on Arch?

In case you're interested -- I did some investigation, out of curiosity, and I did come up with a solution for this, but it's a separate daemon/script.  It's extremely simple, and from what I've seen so far it seems to work quite reliably -- though I am sure that the solution can be improved upon, since I'm not a programmer and my scripting skills are pretty rudimentary.

If you want to have a look I made a PKGBUILD for it -- it's easier that way, since it comes in the form of three files: an rc daemon script, a script used by wpa_supplicant, and a config file.

http://www.loka.pl/outgoing/wpa_auto.tar.gz

What the whole thing does is basically use the ability of wpa_supplicant (or wpa_cli more specifically) to call and execute a script on connect to/disconnect from network events.  The script then runs dhcpcd as appropriate to connect to or disconnect from a dhcpcd server.  The config file configures some wpa_supplicant options.

The whole thing assumes, by the way, that the wpa_supplicant.conf file already exists and is properly configured.

Offline

#7 2008-11-07 23:58:24

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Roaming mode with wpa_supplicant - equivalent on Arch?

Thanks...

Offline

Board footer

Powered by FluxBB