Tag Info

New answers tagged

1

Install the fake-hwclock program: # apt-get install fake-hwclock fake-hwclock: Save/restore system clock on machines without working RTC hardware Some machines don't have a working realtime clock (RTC) unit, or no driver for the hardware that does exist. fake-hwclock is a simple set of scripts to save the kernel's current clock periodically (including ...


1

Since you have already cron'ed the ntp time updates via ntpupdate why not also just add the hardware sync to that cron (or make a second one)? I have used this same method on some of my company's really really old RHEL 3 & 4 boxes to keep their clocks in sync. 0 */4 * * * ntpdate mytimeserver.com && ( hwclock --adjust; hwclock -w ) This cron ...


0

I've rewritten the if clause via: #!/bin/sh modprobe -v rtc_ds1307 if [ $? -eq 0 ]; then # rtc is connected and working, use it echo "RTC Hardware connected, getting time" systemctl disable ntpd.service systemctl stop ntpd.service echo "ds1307 0x68" > /sys/class/i2c-adapter/i2c-1/new_device hwclock -s else # rtc is ...



Top 50 recent answers are included