GPS - Fixed Chrony configuration

This commit is contained in:
Gaston Gonzalez
2024-10-06 17:28:01 -07:00
parent 92d95849af
commit b451e4d38d
2 changed files with 67 additions and 4 deletions
+2 -4
View File
@@ -2,9 +2,8 @@
#
# Author : Gaston Gonzalez
# Date : 1 October 2022
# Updated : 4 October 2024
# Updated : 6 October 2024
# Purpose : Configure GPS and time synch
set -e
et-log "Installing GPS packages and dependencies..."
apt install \
@@ -26,6 +25,5 @@ et-log "Disable automatic start of gpsd..."
systemctl disable gpsd
et-log "Updating chronyd to support GPS as a time source..."
echo "# ET: Enable GPS as a time source" >> /etc/chrony/chrony.conf
echo "refclock SHM 0 refid GPS poll 4 precision 1e-3 offset 0.128" >> /etc/chrony/chrony.conf
cp ../overlay/etc/chrony/chrony.conf /etc/chrony/
systemctl restart chronyd