eitd/sectionsd.cpp: fix ntp_system_cmd when config updated from GUI

This commit is contained in:
[CST] Focus
2015-06-05 17:13:43 +03:00
parent b91347e99a
commit 5611d65c66

View File

@@ -2159,7 +2159,8 @@ bool CEitManager::Start()
if (find_executable("ntpdate").empty()){ if (find_executable("ntpdate").empty()){
ntp_system_cmd_prefix = find_executable("ntpd"); ntp_system_cmd_prefix = find_executable("ntpd");
if (!ntp_system_cmd_prefix.empty()){ if (!ntp_system_cmd_prefix.empty()){
ntp_system_cmd = ntp_system_cmd_prefix + " -n -q -p " + ntpserver; ntp_system_cmd_prefix += " -n -q -p ";
ntp_system_cmd = ntp_system_cmd_prefix + ntpserver;
} }
else{ else{
printf("[sectionsd] NTP Error: time sync not possible, ntpdate/ntpd not found\n"); printf("[sectionsd] NTP Error: time sync not possible, ntpdate/ntpd not found\n");