mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-27 20:07:25 +00:00
ntp: make ntp and alternative for ntpd
This way ntp can be used as an alternative to ntpd from busybox Signed-off-by: Pascal Bach <pascal.bach@siemens.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
32a6fd48ab
commit
bc8fd52a5c
@@ -126,7 +126,7 @@ RCONFLICTS_ntpdate += "ntpdate-systemd"
|
|||||||
|
|
||||||
RSUGGESTS_${PN} = "iana-etc"
|
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} \
|
${NTP_USER_HOME} \
|
||||||
${systemd_unitdir}/ntp-units.d/60-ntpd.list ${libexecdir}\
|
${systemd_unitdir}/ntp-units.d/60-ntpd.list ${libexecdir}\
|
||||||
"
|
"
|
||||||
@@ -159,3 +159,9 @@ pkg_postinst_ntpdate() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inherit update-alternatives
|
||||||
|
|
||||||
|
ALTERNATIVE_PRIORITY = "100"
|
||||||
|
|
||||||
|
ALTERNATIVE_${PN} = "ntpd"
|
||||||
|
ALTERNATIVE_LINK_NAME[ntpd] = "${sbindir}/ntpd"
|
||||||
|
|||||||
Reference in New Issue
Block a user