mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
eitd/sectionsd.cpp: fix ntp_system_cmd when config updated from GUI
This commit is contained in:
@@ -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");
|
||||||
|
Reference in New Issue
Block a user