summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcore/rootfs/rootfs-stage31/data/inc/ntp_sync4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/rootfs/rootfs-stage31/data/inc/ntp_sync b/core/rootfs/rootfs-stage31/data/inc/ntp_sync
index 410b56d2..ff2f0027 100755
--- a/core/rootfs/rootfs-stage31/data/inc/ntp_sync
+++ b/core/rootfs/rootfs-stage31/data/inc/ntp_sync
@@ -42,6 +42,10 @@ func_sync_net_time() {
date -s "@$TTS"
else
echo "No fallback option for timesync available, relying on correct RTC setup"
+ if [ "x$SLX_BIOS_CLOCK" = "xlocal" ]; then
+ # Linux defaults to RTC = UTC, so read again in this case
+ hwclock -l -s
+ fi
fi
fi
}