diff options
author | matt <matt@cvs.openbsd.org> | 2000-07-11 22:30:57 +0000 |
---|---|---|
committer | matt <matt@cvs.openbsd.org> | 2000-07-11 22:30:57 +0000 |
commit | d09461af2ede596c86e17b16c2de9abe508ade8d (patch) | |
tree | 05b641e92ff3c10c2ebc60e1cc2a3aaf7cbe39e4 /etc/rc | |
parent | ae5d88eacbc79e97f7d245c576b49dcdfed530ce (diff) |
- Move ntpd out of rc.securelevel
- Add ntpdate and rdate rc knobs
Approved-And-Assisted-By: millert
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.145 2000/07/06 13:24:49 itojun Exp $ +# $OpenBSD: rc,v 1.146 2000/07/11 22:30:56 matt Exp $ # System startup script run by init on autoboot # or after single-user. @@ -252,6 +252,11 @@ if [ X${amd} = X"YES" -a -d ${amd_dir} -a -e ${amd_master} ]; then -a ${amd_dir} `cat ${amd_master}` > /var/run/amd.pid ) fi +# run rdate before timed +if [ $securelevel -le 1 -a X"${rdate_flags}" != X"NO" ]; then + echo -n ' rdate'; rdate -s ${rdate_flags} +fi + # $timed_flags is imported from /etc/rc.conf; # if $timed_flags == NO, timed isn't run. if [ "X${timed_flags}" != X"NO" ]; then |