From b0f080676bd9f8919c6481e153abbfa9004f8134 Mon Sep 17 00:00:00 2001 From: lukem Date: Fri, 27 Jun 2003 07:22:36 +0000 Subject: [PATCH] Support "multicastclient" directives in ntp.conf. Based on [bin/17930] from Stoned Elipot. --- etc/rc.d/ntpdate | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/etc/rc.d/ntpdate b/etc/rc.d/ntpdate index d268fa406fed..cb883852289b 100755 --- a/etc/rc.d/ntpdate +++ b/etc/rc.d/ntpdate @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: ntpdate,v 1.9 2002/07/19 03:22:09 bad Exp $ +# $NetBSD: ntpdate,v 1.10 2003/06/27 07:22:36 lukem Exp $ # # PROVIDE: ntpdate @@ -17,8 +17,11 @@ ntpdate_start() { if [ -z "$ntpdate_hosts" ]; then ntpdate_hosts=`awk ' - /^(server|peer)[ \t]*127.127/ {next} - /^(server|peer)/ {print $2} + /^#/ { next } + /^(server|peer)[ \t]*127.127/ { next } + /^(server|peer)/ { print $2 } + /^multicastclient$/ { print "224.0.1.1" } + /^multicastclient/ { print $2 } '