mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
et-time - Update label used to check if time is synced via GPS. Updated need after the chrony source label was changed from GPS to NMEA
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Author : Gaston Gonzalez
|
||||
# Date : 21 November 2024
|
||||
# Updated : 13 November 2025
|
||||
# Purpose : Determines if time has been synchronized via GPS
|
||||
|
||||
if [ ! -e /dev/et-gps ]; then
|
||||
@@ -8,7 +9,7 @@ if [ ! -e /dev/et-gps ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
TRACKING_INFO=$(chronyc tracking | grep GPS)
|
||||
TRACKING_INFO=$(chronyc tracking | grep NMEA)
|
||||
if [ $? -ne 0 ]; then
|
||||
et-log "GPS plugged in, but not used for time source. There may an internet connection."
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user