Date: Sat, 03 Jan 2004 08:35:57 -0500 From: Dan Pelleg <daniel+bsd@pelleg.org> To: Eric F Crist <ecrist@adtechintegrated.com> Cc: Dru <dlavigne6@sympatico.ca> Subject: Re: laptop hardware profile Message-ID: <u2sn09540jm.fsf@pelleg.org> In-Reply-To: <200401021539.04321.ecrist@adtechintegrated.com> (Eric F. Crist's message of "Fri, 2 Jan 2004 15:39:04 -0600") References: <20040102150315.B616@genisis.domain.org> <200401021539.04321.ecrist@adtechintegrated.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Eric F Crist <ecrist@adtechintegrated.com> writes: > On Friday 02 January 2004 02:06 pm, Dru wrote: >> Is anyone aware of a tutorial/documentation available for creating a >> hardware profile? I'm thinking of something that allows the user to >> choose to either configure a wireless or a wired NIC during bootup. I >> could script it after bootup, but I'd prefer to do it during loader. >> > FWIW, I have a wired NIC and a wifi NIC. The wifi doesn't attempt to do DHCP > unless it's plugged in. The wired NIC is integrated, so it always tries to > look and if there's a connection, it works, if not, obviously no. If you're > using PCMCIA wifi/wired NICs this is pretty trivial to accomplish. It's > simply the lines: > > pccard_enable="YES" > pccard_ifconfig="DHCP" > > Put these in your rc.conf file. For more options see man rc.conf. You might also find the nicmond port useful. It will attempt to bring the wired interface up only when it detects a live network. This also means it will auto-connect as soon as you plug a running laptop to the network. That's more intuitive in my opinion but certainly different than what you asked for. -- Dan Pelleg
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?u2sn09540jm.fsf>