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",