summaryrefslogtreecommitdiffstats
path: root/abs/core/runit-scripts/runitscripts
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/runit-scripts/runitscripts')
-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