diff options
Diffstat (limited to 'recipes-support/ntp/ntp_4.2.6p5.bbappend')
-rw-r--r-- | recipes-support/ntp/ntp_4.2.6p5.bbappend | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/recipes-support/ntp/ntp_4.2.6p5.bbappend b/recipes-support/ntp/ntp_4.2.6p5.bbappend index 528c6c9..9c6419e 100644 --- a/recipes-support/ntp/ntp_4.2.6p5.bbappend +++ b/recipes-support/ntp/ntp_4.2.6p5.bbappend @@ -1,11 +1,22 @@ PR .= ".mlinux1" SRC_URI += " file://ntpd-init.patch;patchdir=.. \ + file://ntp.conf.patch;patchdir=.. \ " FILESEXTRAPATHS_prepend := "${THISDIR}/files" python do_patch_prepend () { import os - cwd = os.getcwd() - bb.note("Hello %s",cwd) } +pkg_postinst_${PN} () { + touch /etc/ntp.drift + chown ntp:ntp /etc/ntp.drift + chmod 664 /etc/ntp.drift + if ! [[ -d /var/log/ntpstats ]] ; then + mkdir -p /var/log/ntpstats + fi + + chown ntp:ntp /var/log/ntpstats + chmod 775 /var/log/ntpstats +} + |