Make setup-rtc scripts executable
This commit is contained in:
parent
7a91d90a7c
commit
48158a6d4d
0
scripts/setup-rtc-1.sh
Normal file → Executable file
0
scripts/setup-rtc-1.sh
Normal file → Executable file
3
scripts/setup-rtc-2.sh
Normal file → Executable file
3
scripts/setup-rtc-2.sh
Normal file → Executable file
@ -15,16 +15,13 @@ exit 0
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Set system time to Internet time
|
# Set system time to Internet time
|
||||||
|
|
||||||
echo "Restarting systmd-timesyncd to update system time"
|
echo "Restarting systmd-timesyncd to update system time"
|
||||||
|
|
||||||
sudo systemctl restart systemd-timesyncd
|
sudo systemctl restart systemd-timesyncd
|
||||||
|
|
||||||
echo "System time now:"
|
echo "System time now:"
|
||||||
date
|
date
|
||||||
|
|
||||||
# Write system time to the RTC module
|
# Write system time to the RTC module
|
||||||
|
|
||||||
echo "Hardware clock time now:"
|
echo "Hardware clock time now:"
|
||||||
sudo hwclock -r
|
sudo hwclock -r
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user