Date: Fri, 27 Aug 2004 22:52:53 +0200 From: Olof Andersson <olof.a@home.se> To: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> Cc: freebsd-questions@freebsd.org Subject: Re: Startup with no-ip Message-ID: <10910722-F86B-11D8-A246-0003930BAE38@home.se> In-Reply-To: <441xht1ui1.fsf@be-well.ilk.org> References: <65BA0DD3-F79D-11D8-A246-0003930BAE38@home.se> <441xht1ui1.fsf@be-well.ilk.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10910722-F86B-11D8-A246-0003930BAE38>