#!/bin/sh

# check
i2cdetect -y 1

# remove fake
apt-get -y remove fake-hwclock
update-rc.d -f fake-hwclock remove
systemctl disable fake-hwclock

# device
cp hwclock-set /lib/udev/hwclock-set

# set
hwclock -r
hwclock -w
hwclock -r
