On Thu, Aug 28, 2008 at 10:20 AM, Francisco Valladolid Hdez.
<[EMAIL PROTECTED]> wrote:
> Hi folks
>
> frequently i have the necessity to connect to several
> networks (my home, office and another public network )
>
> How can perform it task ?
>
> NetBSD has a ifwatchd daemon  which can help in this
> situations detected the up/down and monitor dynamic
> interfaces.
>
> Any help on it, can be really appreciated.
>
> Best regards
> ficovh

As far as I know OpenBSD has no standard way to deal with this, but
what I do is make an /etc/wifi directory, in which I place a bunch of
scripts in hostname.if(5) format (call them e.g. /etc/wifi/home,
/etc/wifi/office) and then when I need to switch networks I use
something like this script:
#!/bin/sh
#net.sh #change name as desired
IF=ath0
ln -sf /etc/wifi/$1 /etc/hostname.${IF}
sudo sh /etc/netstart

and call it as
$net home

-Nick

Reply via email to