Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Allow for a syntax extension for "ntp.conf" with nt...
details: https://anonhg.NetBSD.org/src/rev/a5a040e6c323
branches: trunk
changeset: 553635:a5a040e6c323
user: fredb <fredb%NetBSD.org@localhost>
date: Sun Oct 19 13:31:28 2003 +0000
description:
Allow for a syntax extension for "ntp.conf" with ntp 4.2.0.
diffstat:
etc/rc.d/ntpdate | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r b2dac5d50afc -r a5a040e6c323 etc/rc.d/ntpdate
--- a/etc/rc.d/ntpdate Sun Oct 19 13:23:57 2003 +0000
+++ b/etc/rc.d/ntpdate Sun Oct 19 13:31:28 2003 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ntpdate,v 1.11 2003/10/19 13:23:57 fredb Exp $
+# $NetBSD: ntpdate,v 1.12 2003/10/19 13:31:28 fredb Exp $
#
# PROVIDE: ntpdate
@@ -19,7 +19,10 @@
ntpdate_hosts=`awk '
/^#/ { next }
/^(server|peer)[ \t]*127.127/ { next }
- /^(server|peer)/ { print $2 }
+ /^(server|peer)/ { if ($2 ~ /[-]/)
+ print $3
+ else
+ print $2 }
/^multicastclient$/ { print "224.0.1.1" }
/^multicastclient/ { print $2 }
' </etc/ntp.conf`
Home |
Main Index |
Thread Index |
Old Index