1749844985

This commit is contained in:
2025-06-13 14:03:04 -06:00
parent 30b0b834c0
commit d4956fb60e
2 changed files with 14 additions and 0 deletions
+2
View File
@@ -16,6 +16,7 @@ influxdb="/etc/influxdb/influxdb.conf"
telegraf="/etc/telegraf/telegraf.conf"
udev_rule="/etc/udev/rules.d/50-tty.rules"
bootfirmwareconfig="/boot/firmware/config.txt"
hwclockset="/lib/udev/hwclock-set"
## new conf file paths
gpsd_new=""$1/gpsd""
chrony_new="$1/chrony.conf"
@@ -24,6 +25,7 @@ influxdb_new="$1/influxdb.conf"
telegraf_new="$1/telegraf.conf"
udev_new="$1/50-tty.rules"
bootfirmwareconfig_new="$1/boot-firmware-config.txt"
hwclockset_new="$1/hwclock-set"
# stop da services
bash ./services.sh stop 1>/dev/null 2>/dev/null
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
# Reset the System Clock to UTC if the hardware clock from which it
# was copied by the kernel was in localtime.
dev=$1
# if [ -e /run/systemd/system ] ; then
# exit 0
# fi
# /sbin/hwclock --rtc=$dev --systz
# /sbin/hwclock --rtc=$dev --hctosys