Enables NTP and fake-hwclock to function on a Pi with a read-only file system
Run the following command in "read & write mode" (rpi-rw)
git clone https://github.com/emonhub/ntp-backup.git ~/ntp-backup && ~/ntp-backup/install
This script is intended to
-
- move the fake-hwclock back to it's original location if used on OEM SD card image
-
- comment out the existing fake-hwclocks cron entry and create a ntp-backup cron entry
-
- add an init script to "backup" current time & drift value at shutdown and by cron
-
- remove these ntp-backup setup files once installation is done
-
- get correct time from ntp servers
-
- backup the current time to fake-hwclock
See Read-only time issues discusion on OpenEnergyMonitor forum for more info