summaryrefslogtreecommitdiff
path: root/recipes-support/ntp/files/ntp.conf.patch
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-02-02 19:15:04 -0600
committerJohn Klug <john.klug@multitech.com>2017-02-02 19:15:04 -0600
commit966a43ef05d4f2a47535e7db42e5ce53500795a0 (patch)
tree0c271da411c8586404b56636cfd9dac1db46d1f6 /recipes-support/ntp/files/ntp.conf.patch
parent511a09c088ffcca591b8793a9d1ad7e4f9ff3994 (diff)
downloadmeta-mlinux-atmel-966a43ef05d4f2a47535e7db42e5ce53500795a0.tar.gz
meta-mlinux-atmel-966a43ef05d4f2a47535e7db42e5ce53500795a0.tar.bz2
meta-mlinux-atmel-966a43ef05d4f2a47535e7db42e5ce53500795a0.zip
create statsdir, drift file for ntp
Diffstat (limited to 'recipes-support/ntp/files/ntp.conf.patch')
-rw-r--r--recipes-support/ntp/files/ntp.conf.patch23
1 files changed, 6 insertions, 17 deletions
diff --git a/recipes-support/ntp/files/ntp.conf.patch b/recipes-support/ntp/files/ntp.conf.patch
index 2d0fdd8..bb1dcfe 100644
--- a/recipes-support/ntp/files/ntp.conf.patch
+++ b/recipes-support/ntp/files/ntp.conf.patch
@@ -1,7 +1,7 @@
diff -Naur old/ntp.conf new/ntp.conf
---- old/ntp.conf 2017-02-01 12:51:59.766760466 -0600
-+++ new/ntp.conf 2017-02-01 14:46:23.005239689 -0600
-@@ -1,16 +1,58 @@
+--- old/ntp.conf 2017-02-02 19:09:54.524791189 -0600
++++ new/ntp.conf 2017-02-02 19:06:41.744669788 -0600
+@@ -1,16 +1,47 @@
-# This is the most basic ntp configuration file
# The driftfile must remain in a place specific to this
# machine - it records the machine specific clock error
@@ -11,6 +11,9 @@ diff -Naur old/ntp.conf new/ntp.conf
+
+# The following code is for evaluating the timeserver.
+# Remove the # to activate the statistics
++# statsdir must start in column 1 for the initscript to
++# create the directory, in case it is volatile.
++#
+# statistics loopstats
+# statistics peerstats
+# statsdir /var/log/ntpstats
@@ -36,24 +39,10 @@ diff -Naur old/ntp.conf new/ntp.conf
+
+# GPS Serial data reference (NTP0)
+# This sets the GPS 50 milliseconds slower than the PPS.
-+# "true" says we don't trust the system clock.
-+# If we are depending on the GPS for timing,
-+# we don't want ntp to mark the GPS as a falseticker
-+# because of a performance issue.
-+# If the GPS is marked as a false ticker
-+# due to a bad timestamp from the system
-+# clock (possibly because the system was
-+# too busy to process an interrupt),
-+# the GPS will be ignored, and if we are
-+# depending on the GPS for leap second, it
-+# will not happen.
+server 127.127.28.0 true
+fudge 127.127.28.0 time1 0.050 refid GPS
+
+# GPS PPS reference (NTP2)
-+# If we are depending on the PPS for timing,
-+# we don't want ntp to mark the PPS as a falseticker
-+# because of a performance issue.
+server 127.127.28.2 prefer true
+fudge 127.127.28.2 time1 0.000 refid PPS
+