From 14da69148a280e4fc7cef0498d4a99c24d06b8ce Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Fri, 3 Feb 2023 17:18:02 +0600 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BD=D0=BE=20?= =?UTF-8?q?=D0=BE=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?ntp=20=D0=B2=D1=81=D0=B5=20=D0=B2=D0=B8=D0=B4=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index ea1ec5a..f623641 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -111,7 +111,6 @@ int MainWindow::check_root(){ return 0; } void MainWindow::lacalization(){ - txtDate->set_tooltip_text(gettext("Date of\nFormat: DD.MM.YYYY")); lblSynchronizebChkGLob->set_text(gettext("Synchronize via NTP")); cbDhcp->append(gettext("By default")); @@ -281,7 +280,12 @@ void MainWindow::wind_close_ntp(){ void MainWindow::stop_ntp(){ windowsNnpClose->hide(); - string cmd = "systemd-timesyncd [[ systemctl --quiet is-active systemd-timesyncd &>/dev/null ]] && systemctl stop systemd-timesyncd"; + // string cmd = "systemd-timesyncd [[ systemctl --quiet is-active systemd-timesyncd &>/dev/null ]] && systemctl stop systemd-timesyncd"; + string cmd = "sudo systemctl stop systemd-timesyncd; " ; + cmd += "sudo systemctl stop ntp.service; sudo systemctl stop ntpdate.service; "; + cmd += "sudo systemctl stop chronyd; sudo service ntpd stop; sudo systemctl stop ptp4l; "; + cmd += "sudo systemctl stop openntpd.service; sudo timedatectl set-ntp false"; + cmd += "sudo systemctl stop phc2sys"; system(cmd.c_str()); this->update_time_date();