Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Ignore "peer" statements for local clocks too when ...
details: https://anonhg.NetBSD.org/src/rev/7be5d91ddf88
branches: trunk
changeset: 534162:7be5d91ddf88
user: bad <bad%NetBSD.org@localhost>
date: Fri Jul 19 03:22:09 2002 +0000
description:
Ignore "peer" statements for local clocks too when selecting hosts from
ntp.conf.
diffstat:
etc/rc.d/ntpdate | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (20 lines):
diff -r c15ec6610a15 -r 7be5d91ddf88 etc/rc.d/ntpdate
--- a/etc/rc.d/ntpdate Fri Jul 19 03:13:55 2002 +0000
+++ b/etc/rc.d/ntpdate Fri Jul 19 03:22:09 2002 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ntpdate,v 1.8 2002/03/22 04:16:39 lukem Exp $
+# $NetBSD: ntpdate,v 1.9 2002/07/19 03:22:09 bad Exp $
#
# PROVIDE: ntpdate
@@ -17,7 +17,7 @@
{
if [ -z "$ntpdate_hosts" ]; then
ntpdate_hosts=`awk '
- /^server[ \t]*127.127/ {next}
+ /^(server|peer)[ \t]*127.127/ {next}
/^(server|peer)/ {print $2}
' </etc/ntp.conf`
fi
Home |
Main Index |
Thread Index |
Old Index