mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-01 09:51:13 +02:00
eitd/sectionsd.cpp: fix ntp_system_cmd when config updated from GUI
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5611d65c66
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-06-05 (Fri, 05 Jun 2015)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
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