On Thu, Jul 17, 2014 at 1:51 PM, Charles Musser <cmus...@sonic.net> wrote:
> I'm looking to create or cobble together functionality that automates
> network connections as a user roams around with a laptop. The idea is
> to respond to changing network availability: wifi network is known, so
> connect, or cable was plugged in, or connect for the first time and
> remember, etc).
>
> On Linux, this is provided by program called NetworkManager. I'm
> pretty sure it's are Linux-specific and, anyway, it depends
> on DBus (a separate messaging system). I was hoping to create
> something a little more self contained. I did explore a couple
> of avenues.
>
> One was the "wiconfig" script mentioned on Undeadly a while
> back. This didn't connect, seemingly because it tried to use WEP, not
> WPA. I didn't want to debug a shell script to find out why.

It should have tried WEP first and, if that failed, WPA.  ifconfig in
-current can now discern WEP or WPA so this can readily be improved.

> An argument could be made that this is of marginal utilty. How hard is
> it to use ifconfig, anyway? But I figured it might be an interesting
> exercise and may be a nice convenience. Any advice, or discussion
> would be appreciated.

Have you taken a look at beck@'s wifinwid at
http://undeadly.org/cgi?action=article&sid=20130208141628?  FWIW,
there's a GSoC for a "NetworkManager" at
http://www.openbsdfoundation.org/gsoc2014.html, but I don't know it's
gotten any love.

Reply via email to