Update setup-rtc scripts
This commit is contained in:
parent
41b0f7470c
commit
dc1b522607
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user