Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 May 2007 20:36:40 -0400
From:      Tom McLaughlin <tmclaugh@sdf.lonestar.org>
To:        Cy Schubert <Cy.Schubert@spqr.komquats.com>
Cc:        questions@freebsd.org
Subject:   Re: Optional Wireless Interface
Message-ID:  <1178584600.1881.15.camel@localhost>
In-Reply-To: <200705072210.l47MALmE009792@cwsys.cwsent.com>
References:  <200705072210.l47MALmE009792@cwsys.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 2007-05-07 at 15:10 -0700, Cy Schubert wrote:
> Before I embark on yet another mini project, is there an approach to 
> optionally configure an interface only if another interface has not been 
> configured? If for example rl0 is configured using DHCP ath0 would not be 
> configured.
> 
> 

One idea I had was adding some sort of profile support to netif.

rc.conf:
# Network profiles:
netprofile_enable="YES"
netprofile_list="HomeWired HomeWifi"
HomeWired_ifconfig_em0="DHCP"
HomeWifi_ifconfig_iwi0="DHCP"

With netprofile_enable set it would cycle through the profile list
stopping with the first that succeeded.  Additionally you could do
`/etc/rc.d/netif action profile` to start up the interfaces associated
with a particular profile.  I wanted to do this since I have home wired
and wifi and work wired and wifi I use my laptop with.  I got distracted
so I stopped looking at the idea.

tom

-- 
| tmclaugh at sdf.lonestar.org             tmclaugh at FreeBSD.org |
| FreeBSD                                   http://www.FreeBSD.org |
| BSD#                    http://www.mono-project.com/Mono:FreeBSD |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1178584600.1881.15.camel>