[Unit] Description=portcv - 把系统时间回写到 RTC(无 NTP 现场的时间源兜底) Documentation=file:///opt/portcv/deploy/board/README.md # 板端 systemd 的 hwclock.service 被厂商 mask(-> /dev/null),/etc/adjtime 停在出厂 # 日期,所以"系统时间 → RTC"没人管:RTC 没电/未校准时,断电一次证据时间戳就错。 After=time-sync.target [Service] Type=oneshot # UTC:本板 /etc/adjtime 第三行为 UTC(RTC 存 UTC,内核 hctosys 也按 UTC 读) ExecStart=/sbin/hwclock --systohc --utc