mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
sectionsd: don't hardcode ntpdate and ntpd path
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
#include <sectionsdclient/sectionsdclient.h>
|
#include <sectionsdclient/sectionsdclient.h>
|
||||||
#include <eventserver.h>
|
#include <eventserver.h>
|
||||||
#include <driver/abstime.h>
|
#include <driver/abstime.h>
|
||||||
|
#include <system/helpers.h>
|
||||||
|
|
||||||
#include "eitd.h"
|
#include "eitd.h"
|
||||||
#include "sectionsd.h"
|
#include "sectionsd.h"
|
||||||
@@ -2098,8 +2099,8 @@ bool CEitManager::Start()
|
|||||||
oldEventsAre = config.epg_old_events*60L*60L; //hours
|
oldEventsAre = config.epg_old_events*60L*60L; //hours
|
||||||
max_events = config.epg_max_events;
|
max_events = config.epg_max_events;
|
||||||
|
|
||||||
if (access("/sbin/ntpdate", F_OK))
|
if (find_executable("ntpdate").empty())
|
||||||
ntp_system_cmd_prefix = "/sbin/ntpd -n -q -p ";
|
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",
|
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);
|
config.epg_cache, config.epg_extendedcache, config.epg_max_events, config.epg_old_events);
|
||||||
|
Reference in New Issue
Block a user