diff options
author | Mike Fiore <mfiore@multitech.com> | 2013-04-23 13:34:29 -0500 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2013-04-23 13:34:29 -0500 |
commit | 975f1ea587da06fadbff78e3f1e38a2f07c173dd (patch) | |
tree | 82f1c5bc23ea6122125c5571f8749cd13d1321f6 /multitech/recipes | |
parent | 1da93ac28b21baec52b3ea47e23d395ddfc0a0a3 (diff) | |
parent | 5fa32ea3eaf4b00f5f8e972f23e8491c755db78e (diff) |
Merge branch 'master' of git.multitech.net:corecdp
Diffstat (limited to 'multitech/recipes')
-rw-r--r-- | multitech/recipes/ntp/ntp_4.2.6p3.bbappend | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/multitech/recipes/ntp/ntp_4.2.6p3.bbappend b/multitech/recipes/ntp/ntp_4.2.6p3.bbappend new file mode 100644 index 0000000..c0e6dc4 --- /dev/null +++ b/multitech/recipes/ntp/ntp_4.2.6p3.bbappend @@ -0,0 +1,14 @@ +PR .= ".corecdp1" + +# create cron job and throw away output to avoid email attempts +pkg_postinst_ntpdate() { +if test "x$D" != "x"; then + exit 1 +else + if ! grep -q -s ntpdate /var/cron/tabs/root; then + echo "adding crontab" + test -d /var/cron/tabs || mkdir -p /var/cron/tabs + echo "30 * * * * /usr/bin/ntpdate -b -s -u pool.ntp.org >/dev/null 2>&1" >> /var/cron/tabs/root + fi +fi +} |