Date: Wed, 26 Sep 2001 14:38:36 -0500 From: David Kelly <dkelly@hiwaay.net> To: mario <admin@tecdigital.net> Cc: scott@smnolde.com, freebsd-questions@FreeBSD.ORG Subject: Re: dhcp & cable, @home (help me fight the MS monopoly) Message-ID: <20010926143836.A21942@grumpy.dyndns.org> In-Reply-To: <010c01c146ae$82867bf0$1ea5190a@Compilar>; from admin@tecdigital.net on Wed, Sep 26, 2001 at 12:13:06PM -0500 References: <20010926125951.E19847-100000@bsd.smnolde.com> <010c01c146ae$82867bf0$1ea5190a@Compilar>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 26, 2001 at 12:13:06PM -0500, mario wrote: > Read /sbin/dhclient-script (its a text file) > > You can add this to /etc/dhclient-exit-hooks: > #!/bin/sh > <whatever you need> > > and then chmod +x /etc/dhclient-exit-hooks You don't want to restart your firewall every time dhclient runs dhclient-exit-hooks as it will often run it several times on a renewal. I suggest you start with an exit-hook script something like this to scope out how dhclient uses it: #!/bin/sh ( date set echo ) >> /tmp/exit-hook-debug If I remember correctly there is a REASON variable explaining why the exit hook was called. Also may include old and new IP addresses. Based on the variables provided you can decide whether or not your firewall script needs to be re-run. Or ddup. -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. 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?20010926143836.A21942>