|
|
|
|
@ -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();
|
|
|
|
|
|
|
|
|
|
|