Hello all.

I won't describe the problem, you all new it: when you switch between
hotspots, your network interface doesn't follow you. Also, you
probably want to have some sort of fallback configuration.

Maybe you have a bunch of shell scripts, or whatever, - all this stuff
that rely on ifconfig(8) output, and thus tend to break on crazy
network names. Sometimes you probably asked yourself, why there is no
NetworkManager analog in OpenBSD? - So here is a try of constructing
an answer to ths question.

The internal logic is simple: scan networks, find known one and try to
run ifconfig(8) (and, probably, dhclient(8) and/or route(8)) on it. I
tried to avoid creating another rich parser syntax - all of the lines
you set up in configuration file became command-line arguments of
corresponding utilities.

I invite you to look at the current source code here:

cvs -d [email protected]:/cvs checkout autonetd

Maybe this will evolve into backend of some GUI, or whatever. Maybe
not. But at least it works much better than what I've had before.

Any input is highly appreciated. Thank you for your time!

--
  WBR,
  Vadim Zhukov

Reply via email to