[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dhcp-client
Subject:    Re: NTP support
From:       Ted Lemon <Ted.Lemon () nominum ! com>
Date:       2000-03-08 23:59:56
[Download RAW message or body]

   *** From dhcp-client -- To unsubscribe, see the end of this message. ***


You need to check to make sure that it's a good time to rewrite the
ntp server file and call ntpdate.   $new_ntp_server is not set with
each invocation of /etc/dhclient-script - only with certain
invocations.   I would actually suggest this:

if [ x$reason = xBOUND ] || [ x$reason = xRENEW ] || \
   [ x$reason = xREBIND ] || [ x$reason = xREBOOT ]; then
  if [ x$new_ntp_server != x$old_ntp_server ] && \
     [ x$new_ntp_server != x ]; then
    ntpdate $new_ntp_server
  fi
fi

-----------------------------------------------------------------------
To unsubscribe from this list, visit http://www.isc.org/dhcp-lists.html
or send mail to dhcp-client-request@isc.org with the subject line of
'unsubscribe'.
-----------------------------------------------------------------------

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic