From be519352aab83e48d3bfaeb2f076f373c1e8e9e4 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Sun, 23 Sep 2012 13:38:53 -0500 Subject: runit-scripts: nptd save hwclock when shutting down ntpd --- abs/core/runit-scripts/PKGBUILD | 2 +- abs/core/runit-scripts/runitscripts/services/ntpd/finish | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 abs/core/runit-scripts/runitscripts/services/ntpd/finish diff --git a/abs/core/runit-scripts/PKGBUILD b/abs/core/runit-scripts/PKGBUILD index dac1d6d..f2cc893 100755 --- a/abs/core/runit-scripts/PKGBUILD +++ b/abs/core/runit-scripts/PKGBUILD @@ -1,6 +1,6 @@ pkgname=runit-scripts pkgver=2.1.1 -pkgrel=72 +pkgrel=73 pkgdesc="collection of startup scripts for runit" url="http://smarden.org/runit/" license="BSD" diff --git a/abs/core/runit-scripts/runitscripts/services/ntpd/finish b/abs/core/runit-scripts/runitscripts/services/ntpd/finish new file mode 100755 index 0000000..ba564e7 --- /dev/null +++ b/abs/core/runit-scripts/runitscripts/services/ntpd/finish @@ -0,0 +1,7 @@ +#!/bin/sh +export TERM=linux +. /etc/rc.conf +. /etc/rc.d/functions +stat_runit "Stopping NTPD" +printhl " setting hwclock" +exec /sbin/hwclock --utc -w -- cgit v0.12