summaryrefslogtreecommitdiff
path: root/recipes-support/ntp/files/ntpd-default
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-01-23 12:32:29 -0600
committerJohn Klug <john.klug@multitech.com>2017-01-23 12:32:29 -0600
commit077ac5882dac3d1ff33af36550df173bb5af8217 (patch)
tree17364c835c8fed319548b1fa127de48d81eaa6f1 /recipes-support/ntp/files/ntpd-default
parentd35110e29ce7806177b2e15704fca18896881b7d (diff)
parent599b7325d9eec4eeaf818ff9bd8f5f7a3d7638e2 (diff)
downloadmeta-mlinux-077ac5882dac3d1ff33af36550df173bb5af8217.tar.gz
meta-mlinux-077ac5882dac3d1ff33af36550df173bb5af8217.tar.bz2
meta-mlinux-077ac5882dac3d1ff33af36550df173bb5af8217.zip
Merge branch 'master' of gitlab.multitech.net:mirrors/meta-mlinux
Diffstat (limited to 'recipes-support/ntp/files/ntpd-default')
-rw-r--r--recipes-support/ntp/files/ntpd-default33
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-support/ntp/files/ntpd-default b/recipes-support/ntp/files/ntpd-default
new file mode 100644
index 0000000..65e2119
--- /dev/null
+++ b/recipes-support/ntp/files/ntpd-default
@@ -0,0 +1,33 @@
+ENABLED="yes"
+
+# The GPSD_* parameters in this file are ignored
+# if the uBlox GPS is not present.
+
+# Require a GPS lock/fix before starting NTP
+# This is needed if we are not using NTP servers.
+# NTP will not work with the GPS if the GPS is not
+# locked before starting.
+# See /etc/default/gpsd for the states required.
+GPSD_REQUIRED=1
+
+# Number of seconds between testing for a GPS
+# lock prior to calling ntpd.
+GPSD_WAIT_TIME=120
+
+# Since the HW Clock could be off by a second or
+# so, our GPS might get marked as a false ticker
+# if we do not set the system clock to the GPS
+# first. The current correct way to do this
+# according to the ntp doc is ntpd -gq -c conffile
+# which must be done before ntpd is started.
+# conffile should exclude the local clock, so it is
+# ignored while doing the initial sync.
+# ntpd -gq apparently does not work with the GPS
+# when tested with the clock more than one day off
+# and no ntpd. The gps shared memory is never polled.
+#
+# If there is a uBlox GPS present, the time is
+# read from the GPS to initialize the system time
+# before NTP is started.
+SET_SYSTEM_CLOCK=1
+