mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
GPS - Adjusted approach for managing GPS
This commit is contained in:
+13
-2
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user