Update setup-rtc scripts

This commit is contained in:
Satu Koskinen 2022-10-23 17:04:10 +03:00
parent 41b0f7470c
commit dc1b522607
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ dtoverlay=i2c-rtc,ds3231
EOF
# Disable fake-hwclock
sudo apt-get remove fake-hwclock
sudo apt-get remove -y fake-hwclock
sudo update-rc.d -f fake-hwclock remove
sudo systemctl disable fake-hwclock

View File

@ -23,10 +23,10 @@ date
# Write system time to the RTC module
echo "Hardware clock time now:"
sudo hwclock -r
sudo hwclock -r --verbose
echo "Writing system time to hardware clock"
sudo hwclock -w
sudo hwclock -w --verbose
echo "Hardware clock time now:"
sudo hwclock -r
sudo hwclock -r --verbose