Skip site navigation (1)Skip section navigation (2)
Date:      29 Jun 2002 13:17:27 -0500
From:      Larry Rosenman <ler@lerctr.org>
To:        David Wolfskill <david@catwhisker.org>
Cc:        freebsd-mobile@FreeBSD.ORG
Subject:   Re: Script to run AFTER DHCP address assigned to wi0?
Message-ID:  <1025374648.385.1.camel@lerlaptop>
In-Reply-To: <200206291754.g5THsTCO024857@bunrab.catwhisker.org>
References:  <200206291754.g5THsTCO024857@bunrab.catwhisker.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2002-06-29 at 12:54, David Wolfskill wrote:
> >From: Larry Rosenman <ler@lerctr.org>
> >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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1025374648.385.1.camel>