components/ntp/patches/40-ntpwait.patch
author Gowtham Thommandra <Gowtham.Thommandra@Oracle.COM>
Wed, 22 Jan 2014 01:46:00 -0800
changeset 1650 ce501c11d5fa
parent 1467 f14b6c5766ca
permissions -rw-r--r--
15685782 SUNBT7005330 NET-SNMP upgrade to latest stable version

This change allows ntp-wait to work with more versions
of NTP, since the format changed slightly. It can be removed
at the next upgrade since there will be no possibility 
of running an older ntp with the old format.

--- scripts/ntp-wait.in
+++ scripts/ntp-wait.in
@@ -20,8 +20,8 @@
     while(<Q>) {
       chomp;
       # the first line should be similar to:
-      # associd=0 status=0645 leap_none, sync_ntp, ...
-      if (/^asso?c?id=0 status=(\S{4}) (\S+), (\S+),/i) {
+      # status=0645 leap_none, sync_ntp, ...
+      if (/status=(\S{4}) (\S+), (\S+),/i) {
 	my $status = $1;
 	my $leap = $2;
 	my $sync = $3;