From owner-freebsd-mobile Mon Jul 1 8:41:44 2002 Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79AAE37B400 for ; Mon, 1 Jul 2002 08:41:41 -0700 (PDT) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7783C43E0A for ; Mon, 1 Jul 2002 08:41:40 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 13529 invoked from network); 1 Jul 2002 15:41:39 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 1 Jul 2002 15:41:39 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g61FgCM17121; Mon, 1 Jul 2002 11:42:12 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <1025537584.411.1.camel@lerlaptop.iadfw.net> Date: Mon, 01 Jul 2002 11:41:41 -0400 (EDT) From: John Baldwin To: Larry Rosenman Subject: Re: Script to run AFTER DHCP address assigned to wi0? Cc: freebsd-mobile@FreeBSD.org, David Wolfskill Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 01-Jul-2002 Larry Rosenman wrote: > On Mon, 2002-07-01 at 10:30, John Baldwin wrote: >> >> On 29-Jun-2002 David Wolfskill wrote: >> >>From: Larry Rosenman >> >>Date: 29 Jun 2002 12:48:20 -0500 >> > >> >>Is there any hooks (I couldn't find any) to have a script run AFTER >> >>dhclient assigns an IP address to wi0? >> > >> > Sure, though it's not specific to the interface in question -- >> > /etc/dhclient-exit-hooks. >> >> Another possiblity is to not set the ifconfig_wi0 variable in >> /etc/rc.conf but use a /etc/start_if.wi0 script instead that >> runs dhclient and then sets the hostname. > I actually let pccard.conf do the setup, and since that is later on, the > /etc/dhclient-exit-hooks script is perfect. > > Thanks, though. > > (ifconfig_wi0 is NOT set in /etc/rc.conf). Ah, in NEWCARD in -current it is different. (There is no ifconfig_pccard, instead pccard and cardbus devices just appear and act like static devices.) -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message