Fake HWClock script for RPi Arch Linux Arm (replicates Raspbian's fake-hwclock)
C Makefile
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
man Fix MAN page format Apr 20, 2013
systemd
LICENSE Add License File Apr 15, 2013
Makefile Fix Makefile (oops) Jan 13, 2014
README.md Updated readme Jan 13, 2014
fake-hwclock.c Added maximum time difference on trusting clock Dec 10, 2016

README.md

alarm-fake-hwclock

Written by Xan Manning inspired by fake-hwclock by Steve McIntyre

Save/restore system clock on machines without working RTC hardware.

Dead simple C program initially designed for Arch Linux ARM that works like fake-hwclock on Debian.

It is recommended to install this via the ArchLinux AUR, see https://aur.archlinux.org/packages/fake-hwclock-git/ for a package in the ArchLinux AUR.

Installation (from AUR)

Please follow the instructions from https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages

Installation (not using AUR)

Suggested packages: ntp and cron.

make
make install

To set system time on start up and save system time on halt, enable the systemd service:

systemctl enable fake-hwclock.service

To keep fake-hwclock up to date in case of power failure, install and enable ntp and add the following job to your root crontab (sudo crontab -e):

*/15 * * * * /usr/bin/fake-hwclock

License

/* -----------------------------------------------------------------------------
 * "THE (COFFEE)WARE LICENSE" (Rev. 1):
 * 
 * <xan.manning@gmail.com> 
 * wrote this file. As long as you retain this notice you can do whatever you
 * want with this stuff. If we meet some day, and you think this stuff is
 * worth it, you can buy me the above drink(s) in return.
 *
 * Xan Manning
 * ----------------------------------------------------------------------------- 
 */