From b79957160d3d9b84411bf8816d436b68a9be4ff7 Mon Sep 17 00:00:00 2001 From: Igor Belitskiy Date: Fri, 3 Feb 2023 17:58:16 +0600 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D1=83=D0=B6=D0=BD=D1=8B=D0=B9=20=D0=BA=D0=BE=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/ubl-settings-datetime.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/source/ubl-settings-datetime.cc b/source/ubl-settings-datetime.cc index 918dc24..532507a 100644 --- a/source/ubl-settings-datetime.cc +++ b/source/ubl-settings-datetime.cc @@ -280,15 +280,6 @@ 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 = "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"; - */ string cmd = ""; string response = ""; string array_servis[8] = {"systemd-timesyncd", "chronyd", "ntp.service", "ntpdate.service",