summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2004-07-06 04:05:27 +0000
committerhenning <henning@openbsd.org>2004-07-06 04:05:27 +0000
commit78386c43f9dd7cdb604fed2b62fd3839037b74de (patch)
tree0a923a627351e8a9aa0a8e250a9fc6407c36ad00
parentbit too rushed :-) (diff)
downloadwireguard-openbsd-78386c43f9dd7cdb604fed2b62fd3839037b74de.tar.xz
wireguard-openbsd-78386c43f9dd7cdb604fed2b62fd3839037b74de.zip
eh, actually add the startup code for ntpd
-rw-r--r--etc/rc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index c90c4427ccc..140ad389647 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.248 2004/06/04 04:26:41 grange Exp $
+# $OpenBSD: rc,v 1.249 2004/07/06 04:05:27 henning Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -298,7 +298,7 @@ if [ X${amd} = X"YES" -a -e ${amd_master} ]; then
-a ${amd_dir} `cat ${amd_master}` > /var/run/amd.pid )
fi
-# run rdate before timed
+# run rdate before timed/ntpd
if [ X"${rdate_flags}" != X"NO" ]; then
echo -n ' rdate'; rdate -s ${rdate_flags}
fi
@@ -308,6 +308,10 @@ fi
if [ "X${timed_flags}" != X"NO" ]; then
echo -n ' timed'; timed $timed_flags
fi
+
+if [ "X${ntpd_flags}" != X"NO" ]; then
+ echo -n ' ntpd'; ntpd $ntpd_flags
+fi
echo '.'
mount -a -t nfs