summaryrefslogtreecommitdiff
path: root/net/netsaint-plugins/files/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'net/netsaint-plugins/files/patch-ac')
-rw-r--r--net/netsaint-plugins/files/patch-ac13
1 files changed, 7 insertions, 6 deletions
diff --git a/net/netsaint-plugins/files/patch-ac b/net/netsaint-plugins/files/patch-ac
index 994cda94580f..796ee76bcc2a 100644
--- a/net/netsaint-plugins/files/patch-ac
+++ b/net/netsaint-plugins/files/patch-ac
@@ -1,11 +1,12 @@
---- plugins-scripts/check_ntp.pl.orig Mon Aug 28 17:00:59 2000
-+++ plugins-scripts/check_ntp.pl Mon Apr 9 19:37:32 2001
-@@ -153,7 +153,7 @@
+--- plugins-scripts/check_ntp.pl.orig Mon Apr 23 19:43:00 2001
++++ plugins-scripts/check_ntp.pl Sun Apr 29 18:38:26 2001
+@@ -154,7 +154,8 @@
###
###
--if (#open(NTPDC,"/usr/sbin/ntpdc -c $host 2>&1 |") ||
-+if (open(NTPDC,"/usr/sbin/ntpdc -c $host 2>&1 |") ||
- open(NTPDC,"/usr/sbin/xntpdc -c $host 2>&1 |") ) {
+-if (open(NTPDC,"/usr/sbin/xntpdc -c peers $host 2>&1 |") ) {
++if (open(NTPDC,"/usr/sbin/xntpdc -c peers $host 2>&1 |") ||
++ open(NTPDC,"/usr/sbin/ntpdc -c peers $host 2>&1 |")) {
while (<NTPDC>) {
print if ($verbose);
+ if (/([^\s]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)\s+([-0-9.]+)/) {