Sync network time when a connection comes up

This commit is contained in:
Luxferre committed 2026-11-07 21:53:07 +02:00
1 parent 38d54f10ff
commit 9ac39ce6bf
13 files changed
+365 -8

No files matched your search

+8
View File
@@ -328,6 +328,14 @@ EOF
chown -R "${TOR_UID:-109}:${TOR_GID:-114}" "$ROOTFS/var/lib/tor"
chmod 0700 "$ROOTFS/var/lib/tor"
fi
# chronyd drops privileges to the chrony user; root-owned driftfile dirs
# make it log "Permission denied" and lose its frequency estimate on reboot.
if [ -d "$ROOTFS/var/lib/chrony" ]; then
CHRONY_UID="$(awk -F: "/^chrony:/ {print \$3}" "$ROOTFS/etc/passwd" 2>/dev/null || true)"
CHRONY_GID="$(awk -F: "/^chrony:/ {print \$4}" "$ROOTFS/etc/passwd" 2>/dev/null || true)"
chown -R "${CHRONY_UID:-101}:${CHRONY_GID:-102}" "$ROOTFS/var/lib/chrony"
chmod 0750 "$ROOTFS/var/lib/chrony"
fi
depmod -b "$ROOTFS" 6.12.1-msm8916