sectionsd: don't hardcode ntpdate and ntpd path

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1ded47c5c8
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2014-01-26 (Sun, 26 Jan 2014)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2014-01-26 21:06:40 +01:00
parent 9b1a44ccc2
commit 404006e379

View File

@@ -45,6 +45,7 @@
#include <sectionsdclient/sectionsdclient.h>
#include <eventserver.h>
#include <driver/abstime.h>
#include <system/helpers.h>
#include "eitd.h"
#include "sectionsd.h"
@@ -2114,8 +2115,8 @@ bool CEitManager::Start()
oldEventsAre = config.epg_old_events*60L*60L; //hours
max_events = config.epg_max_events;
if (access("/sbin/ntpdate", F_OK))
ntp_system_cmd_prefix = "/sbin/ntpd -n -q -p ";
if (find_executable("ntpdate").empty())
ntp_system_cmd_prefix = "ntpd -n -q -p ";
printf("[sectionsd] Caching: %d days, %d hours Extended Text, max %d events, Events are old %d hours after end time\n",
config.epg_cache, config.epg_extendedcache, config.epg_max_events, config.epg_old_events);