This way ntp can be used as an alternative to ntpd from busybox

Signed-off-by: Pascal Bach <[email protected]>
---
 meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb 
b/meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb
index ff4ba64..63e7d60 100644
--- a/meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb
+++ b/meta-networking/recipes-support/ntp/ntp_4.2.8p7.bb
@@ -125,7 +125,7 @@ RCONFLICTS_ntpdate += "ntpdate-systemd"
 
 RSUGGESTS_${PN} = "iana-etc"
 
-FILES_${PN} = "${sbindir}/ntpd ${sysconfdir}/ntp.conf 
${sysconfdir}/init.d/ntpd ${libdir} \
+FILES_${PN} = "${sbindir}/ntpd.ntp ${sysconfdir}/ntp.conf 
${sysconfdir}/init.d/ntpd ${libdir} \
     ${NTP_USER_HOME} \
     ${systemd_unitdir}/ntp-units.d/60-ntpd.list ${libexecdir}\
 "
@@ -158,3 +158,9 @@ pkg_postinst_ntpdate() {
     fi
 }
 
+inherit update-alternatives
+
+ALTERNATIVE_PRIORITY = "100"
+
+ALTERNATIVE_${PN} = "ntpd"
+ALTERNATIVE_LINK_NAME[ntpd] = "${sbindir}/ntpd"
-- 
2.1.4

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to