Date: Sat, 29 Jun 2002 10:54:29 -0700 (PDT) From: David Wolfskill <david@catwhisker.org> To: freebsd-mobile@FreeBSD.ORG, ler@lerctr.org Subject: Re: Script to run AFTER DHCP address assigned to wi0? Message-ID: <200206291754.g5THsTCO024857@bunrab.catwhisker.org> In-Reply-To: <1025372901.423.2.camel@lerlaptop>
next in thread | previous in thread | raw e-mail | index | archive | help
>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. >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 david@catwhisker.org 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 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?200206291754.g5THsTCO024857>