IFSTATED.CONF(5) should help you.

On 07/01/10 08:54, czark...@gmail.com wrote:
> Date: Thu, 01 Jul 2010 10:54:07 +0400
> From: czark...@gmail.com
> To: misc@openbsd.org
> Subject: Connecting to one of available networks on boot
> Message-ID: <4c2c3b8f.oqkyhtdvrrp9b9a5%czark...@gmail.com>
> User-Agent: Heirloom mailx 12.4 7/29/08
> MIME-Version: 1.0
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> 
> Hello!
> 
> I have an OpenBSD 4.7 on my netbook.
> 
> Right now I've configured my home network in hostname.if as it is the
> one I use most.
> 
> Still the ideal situation would be automaticly connecting to any of known
> networks. Reading manuals on ifconfig and hostname.if gave me an idea I could
> have a script that scans available networks on boot and chooses the known one.
> 
> The thing I wanted to ask is: is there any specific mechanism for
> accomplishing this task, or I have to really have a script in my hostname.if?
> 
> --
> Dmitrij D. Czarkoff

Reply via email to