summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-08-21 00:51:35 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-08-21 00:51:35 (GMT)
commit348ed005f1ba2e77ded656fe2209a58197571b2d (patch)
tree9ea9354c86f0510526a72ba831a9a5656534010d /abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd
parent9a60dd7921db1ab7a168da96329bad3e9c24725e (diff)
downloadlinhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.zip
linhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.tar.gz
linhes_pkgbuild-348ed005f1ba2e77ded656fe2209a58197571b2d.tar.bz2
mv-core: bring more stuff up to date
Diffstat (limited to 'abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd')
-rwxr-xr-xabs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run11
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run b/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run
index 65e551c..146c4e0 100755
--- a/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run
+++ b/abs/mv-core/runit-scripts-mv/runitscripts/services/ntpd/run
@@ -1,3 +1,10 @@
#!/bin/sh
-/usr/bin/ntpdate pool.ntp.org
-exec /usr/bin/ntpd -n -p /var/run/ntpd.pid
+export TERM=linux
+. /etc/rc.conf
+. /etc/rc.d/functions
+stat_runit "Starting NTPD"
+printhl " Fetching time"
+msg=`/usr/bin/ntpdate pool.ntp.org `
+printhl " $msg"
+
+exec /usr/bin/ntpd -n -p /var/run/ntpd.pid 2>/dev/null