diff --git a/astroarch_build.sh b/astroarch_build.sh index 8e0caea..2f140d3 100644 --- a/astroarch_build.sh +++ b/astroarch_build.sh @@ -107,6 +107,9 @@ sleep 5 # Remove eventually existing systemd configs we are going to substitute rm -f /usr/lib/systemd/system/novnc.service +# Synchronize the system time with the GPS if there is no Real Time Clock (RTC) or network connection to the Raspberry Pi +sed -i '$a\refclock SHM 0 offset 0.5 delay 0.2 refid NMEA' /etc/chrony.conf + # Disable systemd-timesyncd and enable chronyd systemctl disable systemd-timesyncd systemctl enable chronyd diff --git a/scripts/2.0.5.sh b/scripts/2.0.5.sh new file mode 100644 index 0000000..a372296 --- /dev/null +++ b/scripts/2.0.5.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Synchronize the system time with the GPS if there is no Real Time Clock (RTC) or network connection to the Raspberry Pi +sed -i '$a\refclock SHM 0 offset 0.5 delay 0.2 refid NMEA' /etc/chrony.conf