always use ntp

This commit is contained in:
Tobias Powalowski 2023-07-19 08:39:52 +02:00
parent e38f97e91b
commit 454fc4dcd4

View file

@ -50,6 +50,7 @@ _timeset() {
# check internet connection
if ping -c1 www.google.com &>/dev/null; then
_dialog --infobox "Syncing clock with NTP pool..." 3 45
sleep 3
# sync immediatly with standard pool
if ! systemctl restart systemd-timesyncd; then
_dialog --msgbox "An error has occured, time was not changed!" 0 0