From owner-freebsd-questions@FreeBSD.ORG Sat Jan 3 05:36:04 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 663D116A4CE for ; Sat, 3 Jan 2004 05:36:04 -0800 (PST) Received: from gw.pelleg.org (gw.pelleg.org [205.201.13.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8A1843D1D for ; Sat, 3 Jan 2004 05:36:02 -0800 (PST) (envelope-from daniel+bsd@pelleg.org) Received: from lank.here (lank.wburn [192.168.3.41]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "gw.pelleg.org", Issuer "Dan Pelleg" (verified OK)) by gw.pelleg.org (Postfix) with ESMTP id 225795A53; Sat, 3 Jan 2004 08:36:00 -0500 (EST) Received: by lank.here (Postfix, from userid 7675) id AB7B4260; Sat, 3 Jan 2004 08:35:58 -0500 (EST) To: Eric F Crist References: <20040102150315.B616@genisis.domain.org> <200401021539.04321.ecrist@adtechintegrated.com> From: Dan Pelleg Date: Sat, 03 Jan 2004 08:35:57 -0500 In-Reply-To: <200401021539.04321.ecrist@adtechintegrated.com> (Eric F. Crist's message of "Fri, 2 Jan 2004 15:39:04 -0600") Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.1 (Cuyahoga Valley, berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: questions@freebsd.org cc: Dru Subject: Re: laptop hardware profile X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2004 13:36:04 -0000 Eric F Crist 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