GPS - Adjusted approach for managing GPS

This commit is contained in:
Gaston Gonzalez
2024-10-06 06:52:57 -07:00
parent 8a2ec1aa3d
commit 8a8f07a22d
7 changed files with 83 additions and 14 deletions
+13 -2
View File
@@ -2,11 +2,22 @@
#
# Author : Gaston Gonzalez
# Date : 16 March 2024
# Updated : 17 May 2024
# Updated : 4 October 2024
# Purpose : Install base tools
set -e
et-log "Installing message of the day"
et-log "Installing environment variables"
grep ET_TEMP_DIR /etc/environment
if [ $? -ne 0 ]; then
echo "ET_TEMP_DIR=/tmp/et" >> /etc/environment
fi
grep ET_LOG_FILE /etc/environment
if [ $? -ne 0 ]; then
echo "ET_LOG_FILE=/tmp/et/et.log" >> /etc/environment
fi
et-log "Installing message of the day
cp -v ../overlay/etc/motd /etc/
et-log "Installing base packages"
+2 -2
View File
@@ -22,8 +22,8 @@ et-log "Updating gpsd systemd script..."
cp ../overlay/lib/systemd/system/gpsd.service /lib/systemd/system/
systemctl daemon-reload
et-log "Enabling gpsd..."
systemctl enable gpsd
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