Skip to content

Enables NTP and fake-hwclock to function on a Pi with a read-only file system

Notifications You must be signed in to change notification settings

emonhub/ntp-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ntp-backup

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

    1. move the fake-hwclock back to it's original location if used on OEM SD card image
    1. comment out the existing fake-hwclocks cron entry and create a ntp-backup cron entry
    1. add an init script to "backup" current time & drift value at shutdown and by cron
    1. remove these ntp-backup setup files once installation is done
    1. get correct time from ntp servers
    1. backup the current time to fake-hwclock

See Read-only time issues discusion on OpenEnergyMonitor forum for more info

About

Enables NTP and fake-hwclock to function on a Pi with a read-only file system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages