Re: Script to run AFTER DHCP address assigned to wi0?

David Wolfskill <[email protected]>
Newsgroups gmane.os.freebsd.devel.mobile
Message-ID <[email protected]>
>From: Larry Rosenman <[email protected]>
>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.

>I have my hostname set WITHOUT a domain name on this laptop, since it
>can live, normally, in one of two domains (work and home). 

>Some MTA's (FreeBSD.org notably) will not accept Sendmail's HELO/EHLO
>without a FQDN. 

>I need to restart sendmail once the address is set so that sendmail uses
>the correct FQDN for which network it is in. 

>Anyone got any ideas? 

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).

Cheers,
david       (links to my resume at http://www.catwhisker.org/~david)
-- 
David H. Wolfskill				[email protected]
Trying to support or use Microsoft products makes about as much sense
as painting the outside of a house with watercolors.

To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-mobile" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.