There is example for hostname.if for auto-join to wifi network 
https://www.mail-archive.com/source-changes@openbsd.org/msg99921.html

But what if I have different networks with dynamic and static IPs or another 
different options? For example:

join home wpakey password <---------- has static IP and 'wpaprotos wpa1' option
join work wpakey mekmitasdigoat
dhcp
inet6 autoconf
up

Thanks!

Reply via email to