From owner-freebsd-mobile Mon Jul 1 8:33:32 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 AD43B37B400; Mon, 1 Jul 2002 08:33:29 -0700 (PDT) Received: from lerlaptop.iadfw.net (lerlaptop.iadfw.net [206.66.13.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40B9943E0A; Mon, 1 Jul 2002 08:33:29 -0700 (PDT) (envelope-from ler@lerctr.org) Received: from localhost (localhost [127.0.0.1]) by lerlaptop.iadfw.net (8.12.5/8.12.5) with ESMTP id g61FX4UD000482; Mon, 1 Jul 2002 10:33:04 -0500 (CDT) (envelope-from ler@lerctr.org) Subject: Re: Script to run AFTER DHCP address assigned to wi0? From: Larry Rosenman To: John Baldwin Cc: David Wolfskill , freebsd-mobile@FreeBSD.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 01 Jul 2002 10:33:04 -0500 Message-Id: <1025537584.411.1.camel@lerlaptop.iadfw.net> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) 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 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). > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message