Date: Wed, 5 Jun 2002 14:08:57 +0200 From: Axel Scheepers <axel@axel.truedestiny.net> To: BSD Freak <bsd-freak@mbox.com.au> Cc: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Getting a DHCP client to give me it's address Message-ID: <20020605140857.B58030@mars.thuis> In-Reply-To: <e15cede16c93.e16c93e15ced@mbox.com.au>; from bsd-freak@mbox.com.au on Wed, Jun 05, 2002 at 11:06:41AM %2B1000 References: <e15cede16c93.e16c93e15ced@mbox.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jun 05, 2002 at 11:06:41AM +1000, BSD Freak wrote: > Is there any script that the FreeBSD DHCP client runs when it obtains > an IP address (something similar to ppp.linkup). I need to basically > run a script with the newly obatined IP address as an argument, eg: That should be /sbin/dhclient-script, you can provide some enter/exit hooks (don't modify that one, since it will break on an upgrade) to do what you want. See man dhclient for further info about it. > > I need it to run something like this: > > /usr/local/scripts/email-my-ip.sh $IP > > > Thanks in advance..... Gr, -- Axel Scheepers UNIX System Administrator email: axel@axel.truedestiny.net a.scheepers@iae.nl http://axel.truedestiny.net/~axel ------------------------------------------ In 1914, the first crossword puzzle was printed in a newspaper. The creator received $4000 down ... and $3000 across. ------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020605140857.B58030>