On Wed, Feb 28, 2001 at 03:51:04PM -0800, Dan B <[EMAIL PROTECTED]> wrote:
> [...]
> Everytime your ip address changes, you need to run the following
> script. If you are on ppp, then put this in the bottom of your
> /etc/sysconfig/network-scripts/ifup-post, if you are on some DSL/cable
> DHCP, then that *might* not work for you (does anyone know of a script that
> dhcpcd execs after every new ip addy?).
The {interface}.exe files in /etc/dhcpcd/ and e-smith then calls the
ip-change event. You don't need to touch anything in /etc/dhcpd - we've
already done that for you.
> [...]
> Maybe this will help someone else / or others on the list will have comments.
Why are you doing it the hard way? :-)
The scripts in /etc/e-smith/events/ip-change are called when your external
IP changes. No calculation required. The new external IP can be retrieved
with
/sbin/e-smith/config get ExternalIP
in shell. There are plenty of Perl examples in that directory to show you
how to get direct access to the config database.
Gordon
--
Gordon Rowell [EMAIL PROTECTED]
http://www.e-smith.org (development) http://www.e-smith.com (corporate)
Phone: +61 (0418) 467 366 Fax: +1 (613) 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada