From owner-freebsd-mobile Sat Jun 29 10:54:51 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 BC4B037B400 for ; Sat, 29 Jun 2002 10:54:48 -0700 (PDT) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id D95B843E39 for ; Sat, 29 Jun 2002 10:54:29 -0700 (PDT) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.12.4/8.12.4) with ESMTP id g5THsT25024858; Sat, 29 Jun 2002 10:54:29 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.12.4/8.12.4/Submit) id g5THsTCO024857; Sat, 29 Jun 2002 10:54:29 -0700 (PDT) Date: Sat, 29 Jun 2002 10:54:29 -0700 (PDT) From: David Wolfskill Message-Id: <200206291754.g5THsTCO024857@bunrab.catwhisker.org> To: freebsd-mobile@FreeBSD.ORG, ler@lerctr.org Subject: Re: Script to run AFTER DHCP address assigned to wi0? In-Reply-To: <1025372901.423.2.camel@lerlaptop> 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 >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. >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