equal
deleted
inserted
replaced
|
1 This change allows ntp-wait to work with more versions |
|
2 of NTP, since the format changed slightly. It can be removed |
|
3 at the next upgrade since there will be no possibility |
|
4 of running an older ntp with the old format. |
|
5 |
|
6 --- scripts/ntp-wait.in |
|
7 +++ scripts/ntp-wait.in |
|
8 @@ -20,8 +20,8 @@ |
|
9 while(<Q>) { |
|
10 chomp; |
|
11 # the first line should be similar to: |
|
12 - # associd=0 status=0645 leap_none, sync_ntp, ... |
|
13 - if (/^asso?c?id=0 status=(\S{4}) (\S+), (\S+),/i) { |
|
14 + # status=0645 leap_none, sync_ntp, ... |
|
15 + if (/status=(\S{4}) (\S+), (\S+),/i) { |
|
16 my $status = $1; |
|
17 my $leap = $2; |
|
18 my $sync = $3; |