summaryrefslogtreecommitdiff
path: root/recipes-core/multitech
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2019-05-24 13:53:53 -0500
committerJohn Klug <john.klug@multitech.com>2019-05-24 13:53:53 -0500
commit48756c440e339af5a0e2b486978e7a183f6cc8a2 (patch)
tree18cf4140de7d0f3add83b172cb4d1c06f0332380 /recipes-core/multitech
parent6c32071e09d7628272c21f3895d93c690ef09a8e (diff)
downloadmeta-mlinux-atmel-48756c440e339af5a0e2b486978e7a183f6cc8a2.tar.gz
meta-mlinux-atmel-48756c440e339af5a0e2b486978e7a183f6cc8a2.tar.bz2
meta-mlinux-atmel-48756c440e339af5a0e2b486978e7a183f6cc8a2.zip
Turn off ntpd for testing
Diffstat (limited to 'recipes-core/multitech')
-rw-r--r--recipes-core/multitech/config/config-mths/default/ntpd36
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/config-mths/default/ntpd b/recipes-core/multitech/config/config-mths/default/ntpd
new file mode 100644
index 0000000..a0d3bcf
--- /dev/null
+++ b/recipes-core/multitech/config/config-mths/default/ntpd
@@ -0,0 +1,36 @@
+ENABLED="no"
+
+
+CONFIGFILE=/etc/ntp.conf
+
+# 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=0
+
+# 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
+