summaryrefslogtreecommitdiff
path: root/packages/ntp
diff options
context:
space:
mode:
authornslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-04 18:40:11 +0000
committernslu2-linux.adm@bkbits.net <nslu2-linux.adm@bkbits.net>2005-01-04 18:40:11 +0000
commitad4c18503374b2c0fe7767ebaf726cdf599d5476 (patch)
treeff7d6b08d675373c7283416fbdc99322818fa43a /packages/ntp
parentbf59669373415ba79647857d3729ebe1409c9db6 (diff)
Merge bk://oe-devel.bkbits.net/openembedded
into bkbits.net:/repos/n/nslu2-linux/openembedded 2005/01/04 18:19:08+00:00 (none)!cwiiis Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into cwiiisdesktop.(none):/home/cwiiis/oe/openembedded 2005/01/04 18:18:43+00:00 (none)!cwiiis Update matchbox packages to latest versions. 2005/01/04 18:17:57+00:00 (none)!cwiiis Update patch in gpe-login to reflect device name changes. 2005/01/04 18:54:22+01:00 (none)!br1 nylon-scripts update 2005/01/04 18:53:56+01:00 (none)!br1 busybox: use syslog.conf file for configuring syslog 2005/01/04 18:53:02+01:00 (none)!br1 ntpdate (nylon): run ntpdate per cron job 2005/01/04 18:51:02+01:00 (none)!br1 Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into null.(none):/data/mtx/closed/build/unstable/openembedded 2005/01/03 19:22:49+01:00 (none)!br1 Merge bk://oe-devel@oe-devel.bkbits.net/openembedded into null.(none):/data/mtx/closed/build/unstable/openembedded 2005/01/03 19:22:15+01:00 (none)!br1 libcgicc: add do_stage BKrev: 41dae30bdaCaSnKAzfQ6vY7Ve8o7fw
Diffstat (limited to 'packages/ntp')
-rw-r--r--packages/ntp/ntp_4.1.2.bb16
1 files changed, 15 insertions, 1 deletions
diff --git a/packages/ntp/ntp_4.1.2.bb b/packages/ntp/ntp_4.1.2.bb
index 97bd23b196..dba8632893 100644
--- a/packages/ntp/ntp_4.1.2.bb
+++ b/packages/ntp/ntp_4.1.2.bb
@@ -6,7 +6,7 @@ HOMEPAGE = "http://ntp.isc.org/bin/view/Main/WebHome"
SECTION = "console/network"
PRIORITY = "optional"
LICENSE = "ntp"
-PR = "r1"
+PR = "r2"
SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-${PV}.tar.gz \
file://configure.patch;patch=1 \
@@ -26,3 +26,17 @@ do_install_append() {
install -d ${D}/${sysconfdir}/init.d
install -m 755 ${WORKDIR}/ntpdate ${D}/${sysconfdir}/init.d
}
+
+pkg_postinst_ntpdate_nylon() {
+#!/bin/sh
+if test "x$D" == "x"; then
+ mkdir -p /etc/cron/crontabs
+ if ! grep -q ntpdate /etc/cron/crontabs/root; then
+ echo "adding crontab"
+ echo "30 * * * * /usr/bin/ntpdate -s -u pool.ntp.org" >> /etc/cron/crontabs/root
+ fi
+ update-rc.d -s busybox-cron defaults
+fi
+update-rc.d -s ntpdate defaults 30
+}
+ \ No newline at end of file