From owner-freebsd-mobile Sat Jun 29 11:17:47 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 1B4E237B405 for ; Sat, 29 Jun 2002 11:17:43 -0700 (PDT) Received: from lerlaptop.lerctr.org (lerlaptop.lerctr.org [207.158.72.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E79543E0A for ; Sat, 29 Jun 2002 11:17:42 -0700 (PDT) (envelope-from ler@lerctr.org) Received: from localhost (localhost [127.0.0.1]) by lerlaptop.lerctr.org (8.12.5/8.12.5) with ESMTP id g5TIHRiq000447; Sat, 29 Jun 2002 13:17:28 -0500 (CDT) (envelope-from ler@lerctr.org) Subject: Re: Script to run AFTER DHCP address assigned to wi0? From: Larry Rosenman To: David Wolfskill Cc: freebsd-mobile@FreeBSD.ORG In-Reply-To: <200206291754.g5THsTCO024857@bunrab.catwhisker.org> References: <200206291754.g5THsTCO024857@bunrab.catwhisker.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.7 Date: 29 Jun 2002 13:17:27 -0500 Message-Id: <1025374648.385.1.camel@lerlaptop> 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 Sat, 2002-06-29 at 12:54, 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. Aha, documented in the dhclient-script(8) man page, even. Thanks. > > > I use the above-mentioned script to set the hostname (via "reverse" > lookup on the assigned IP address), as well as make an attempt to run > ntpdate & fire up ntpd. > > Pointers to samples available at > http://www.catwhisker.org/~david/FreeBSD/laptop.html (near the bottom of > the page). > I think I'm going to, err, borrow that script, and modify to taste. Appreciate the quick answer! -- 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