diff options
author | John Klug <john.klug@multitech.com> | 2019-12-20 17:08:27 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2020-06-18 20:22:07 -0500 |
commit | 0db667d768cc1085d72ba776fdc4ff4974141094 (patch) | |
tree | d9cf508ebb224541a290ced020d646fe630dc04c /recipes-support/ntp/ntp_%.bbappend | |
parent | 33cf972ea6eccc75238ee47a9cb41129d3301f8b (diff) | |
download | meta-mlinux-0db667d768cc1085d72ba776fdc4ff4974141094.tar.gz meta-mlinux-0db667d768cc1085d72ba776fdc4ff4974141094.tar.bz2 meta-mlinux-0db667d768cc1085d72ba776fdc4ff4974141094.zip |
Do not start ntpd without GPS unless configured
Diffstat (limited to 'recipes-support/ntp/ntp_%.bbappend')
-rw-r--r-- | recipes-support/ntp/ntp_%.bbappend | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes-support/ntp/ntp_%.bbappend b/recipes-support/ntp/ntp_%.bbappend index c69eff0..436164a 100644 --- a/recipes-support/ntp/ntp_%.bbappend +++ b/recipes-support/ntp/ntp_%.bbappend @@ -1,4 +1,4 @@ -PR .= ".mlinux5" +PR .= ".mlinux6" SRC_URI += " file://ntpd-default \ file://ntp.conf.patch;patchdir=.. \ @@ -23,6 +23,8 @@ do_install_append() { touch ${drfile} chmod 664 ${drfile} chown -R ntp:ntp ${drdir} + tmp=$(sha256sum ${D}${sysconfdir}/ntp.conf | sed 's/ .*//') + echo "CONFIGFILE_sha256=${tmp}" >> ${D}${sysconfdir}/default/ntpd.default } pkg_postinst_${PN}_append() { update-alternatives --install ${sysconfdir}/default/ntpd ntpd-defaults ${sysconfdir}/default/ntpd.default 10 |