diff --git a/src/eitd/sectionsd.cpp b/src/eitd/sectionsd.cpp index b2f6c93e0..b4e3bacda 100644 --- a/src/eitd/sectionsd.cpp +++ b/src/eitd/sectionsd.cpp @@ -45,6 +45,7 @@ #include #include #include +#include #include "eitd.h" #include "sectionsd.h" @@ -2098,8 +2099,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);