bin/57407: [patch] Better NTP support for dhclient(8) and
friends
Makoto Matsushita
matusita at jp.FreeBSD.org
Tue Sep 30 16:20:13 PDT 2003
The following reply was made to PR bin/57407; it has been noted by GNATS.
From: Makoto Matsushita <matusita at jp.FreeBSD.org>
To: bug-followup at FreeBSD.org
Cc: r.s.a.vandomburg at student.utwente.nl
Subject: Re: bin/57407: [patch] Better NTP support for dhclient(8) and
friends
Date: Wed, 01 Oct 2003 08:13:10 +0900
+make_ntp_conf() {
+ if [ x"$new_ntp_servers" != x ]; then
+ ( echo restrict default noquery notrust nomodify >/etc/ntp.conf )
+ exit_status=$?
+ if [ $exit_status -ne 0 ]; then
+ $LOGGER "WARNING: Unable to update ntp.conf: Error $exit_status"
+ else
+ ( echo restrict 127.0.0.1 >>/etc/ntp.conf )
+ for ntpserver in $new_ntp_servers; do
+ ( echo restrict $ntpserver >>/etc/resolv.conf )
+ done
+ for ntpserver in $new_ntp_servers; do
+ ( echo server $ntpserver >>/etc/resolv.conf )
+ done
+ ( echo driftfile /etc/ntp.drift >>/etc/resolv.conf )
+ fi
+ fi
+}
I doubt if this function, make_ntp_conf() does the right things, since
it writes NTP-related contents to /etc/resolv.conf (see above).
-- -
Makoto `MAR' Matsushita
More information about the freebsd-bugs
mailing list