summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts/services/ntpd
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-09-23 18:38:53 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-09-23 18:38:53 (GMT)
commitbe519352aab83e48d3bfaeb2f076f373c1e8e9e4 (patch)
treecba3002f371fbddc0ad6d86e36f492ea50a6870a /abs/core/runit-scripts/runitscripts/services/ntpd
parentdab0a7167db39e0ed009a6061a9a0a8d91f86a2c (diff)
downloadlinhes_pkgbuild-be519352aab83e48d3bfaeb2f076f373c1e8e9e4.zip
linhes_pkgbuild-be519352aab83e48d3bfaeb2f076f373c1e8e9e4.tar.gz
linhes_pkgbuild-be519352aab83e48d3bfaeb2f076f373c1e8e9e4.tar.bz2
runit-scripts: nptd save hwclock when shutting down ntpd
Diffstat (limited to 'abs/core/runit-scripts/runitscripts/services/ntpd')
-rwxr-xr-xabs/core/runit-scripts/runitscripts/services/ntpd/finish7
1 files changed, 7 insertions, 0 deletions
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