util-linux-ng: add an hourly cron job for hwclock --adjtime.
--HG-- extra : convert_revision : 71220f4abc2512b3e63f71a4bca0ec863290206f
This commit is contained in:
parent
e602e6662d
commit
8f79211760
5
templates/util-linux-ng/files/adjtime.cron-hourly
Normal file
5
templates/util-linux-ng/files/adjtime.cron-hourly
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Update our hwclock for system drift
|
||||
|
||||
/sbin/hwclock --adjtime
|
|
@ -1,6 +1,7 @@
|
|||
# Template file for 'util-linux-ng'
|
||||
pkgname=util-linux-ng
|
||||
version=2.14.2
|
||||
revision=1
|
||||
distfiles="http://www.kernel.org/pub/linux/utils/$pkgname/v2.14/$pkgname-$version.tar.bz2"
|
||||
build_style=gnu_configure
|
||||
configure_args="--enable-partx --enable-write"
|
||||
|
@ -33,4 +34,8 @@ post_install()
|
|||
install -d -m 755 ${DESTDIR}/bin
|
||||
mv ${DESTDIR}/usr/bin/logger ${DESTDIR}/bin
|
||||
mkdir -p ${DESTDIR}/var/lib/hwclock
|
||||
|
||||
# Install the cron daily job.
|
||||
install -D -m755 ${FILESDIR}/adjtime.cron-hourly \
|
||||
${DESTDIR}/etc/cron.hourly/adjtime
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user