xntp revision 7c478bd95313f5f23a4c958a745db2134aa03244
#
# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
# Service Method Support Program (Script) for the NTP service
#
BEGIN {
first = 1
}
/^[ \t]*#/ {
next
}
/^multicastclient[ \t]+/ {
if (first) {
first = 0
printf("-s -m")
}
if (NF == 1)
printf(" 224.0.1.1")
else
printf(" %s", $2)
next
}
/^server 127.127/ {
next
}
/^server[ \t]+|^peer[ \t]+/ {
if (first) {
first = 0
printf("-s")
}
printf(" %s", $2)
next
}
# Run ntpdate to sync system to peer before starting xntpd