diff options
-rw-r--r-- | recipes-support/ntp/ntp_4.2.6p5.bbappend | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-support/ntp/ntp_4.2.6p5.bbappend b/recipes-support/ntp/ntp_4.2.6p5.bbappend index b656256..417d239 100644 --- a/recipes-support/ntp/ntp_4.2.6p5.bbappend +++ b/recipes-support/ntp/ntp_4.2.6p5.bbappend @@ -1,4 +1,4 @@ -PR .= ".mlinux1" +PR .= ".mlinux2" SRC_URI += " file://ntpd-init.patch;patchdir=.. \ file://ntp.conf.patch;patchdir=.. \ @@ -35,11 +35,11 @@ do_install_prepend() { install -m 0644 ${WORKDIR}/ntpd-default ${D}${sysconfdir}/default/ntpd.default echo JAK In do_install_append default is $(ls ${D}cd${sysconfdir}/default/ntpd.default) } -pkg_postinst_${PN}() { +pkg_postinst_${PN}_append() { update-alternatives --install ${sysconfdir}/default/ntpd ntpd-defaults ${sysconfdir}/default/ntpd.default 10 } -pkg_postrm_${PN}() { +pkg_postrm_${PN}_append() { update-alternatives --remove ntpd-defaults ${sysconfdir}/default/ntpd.default } FILES_${PN} += "${sysconfdir}/default/ntpd.default" |