summaryrefslogtreecommitdiff
path: root/recipes-support/ntp
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-01-17 12:06:49 -0600
committerJohn Klug <john.klug@multitech.com>2017-01-17 12:06:49 -0600
commit3959907c3a6a8d78368de3c624155260a2d418fe (patch)
tree04ae9c758c8c78199dd291c2fee26756b4a2bc65 /recipes-support/ntp
parent2252f387635dc75042201d2a4bda1a9bd387c696 (diff)
downloadmeta-mlinux-3959907c3a6a8d78368de3c624155260a2d418fe.tar.gz
meta-mlinux-3959907c3a6a8d78368de3c624155260a2d418fe.tar.bz2
meta-mlinux-3959907c3a6a8d78368de3c624155260a2d418fe.zip
Remove incorrect comments, and use syslog for logging
Diffstat (limited to 'recipes-support/ntp')
-rw-r--r--recipes-support/ntp/files/ntp.conf.patch15
1 files changed, 7 insertions, 8 deletions
diff --git a/recipes-support/ntp/files/ntp.conf.patch b/recipes-support/ntp/files/ntp.conf.patch
index 499dac5..691d039 100644
--- a/recipes-support/ntp/files/ntp.conf.patch
+++ b/recipes-support/ntp/files/ntp.conf.patch
@@ -1,7 +1,7 @@
-diff -u old/ntp.conf new/ntp.conf
---- old/ntp.conf 2016-12-21 08:36:33.887646960 -0600
-+++ new/ntp.conf 2016-12-21 08:37:41.115645756 -0600
-@@ -1,7 +1,20 @@
+diff -Naur old/ntp.conf new/ntp.conf
+--- old/ntp.conf 2017-01-17 12:00:15.560426583 -0600
++++ new/ntp.conf 2017-01-17 12:02:11.968426337 -0600
+@@ -1,16 +1,44 @@
-# 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
@@ -23,20 +23,19 @@ diff -u old/ntp.conf new/ntp.conf
+
# This should be a server that is close (in IP terms)
# to the machine. Add other servers as required.
- # Unless you un-comment the line below ntpd will sync
-@@ -9,8 +22,26 @@
+-# Unless you un-comment the line below ntpd will sync
+-# only against the local system clock.
#
# server time.server.example.com
#
+
-+logfile /var/log/ntp.log
-+
+restrict default kod nomodify notrap nopeer noquery
+restrict -6 default kod nomodify notrap nopeer noquery
+restrict 127.0.0.1 mask 255.255.255.0
+restrict -6 ::1
+
+# GPS Serial data reference (NTP0)
++# This sets the GPS 80 milliseconds slower than the PPS.
+server 127.127.28.0
+fudge 127.127.28.0 time1 0.080 refid GPS
+