blob: a0d3bcf45e3e63273f885b7a8354992b1a7bf028 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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
|