Good suggestion. I have created the file /etc/dhclient-exit-hooks but do I need to do something else to get the noip to run when the ip-address changes? I'm a beginner so i could really need some help with the details.


Thanks in advance

/Olof Andersson


but I suggest not running the updater as a daemon at all.

I have the dhcp client run it automatically when the address changes,
by creating /etc/dhclient-exit-hooks as follows:

  #!/bin/sh

updater_prog = /usr/local/bin/noip2
if [ x$reason = xREBOOT ] || \
[ x$old_ip_address = x ] || \
[ x$old_ip_address != x$new_ip_address ]; then
if [ -x $updater_prog ]; then
${updater_prog} -i "$new_ip_address"
else
logger "dhclient-exit-hooks cannot find updater $updater_prog"
fi
fi

_______________________________________________ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to