Startup with no-ip
    Olof Andersson 
    olof.a at home.se
       
    Fri Aug 27 13:52:56 PDT 2004
    
    
  
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
    
    
More information about the freebsd-questions
mailing list