summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/scripts/ntpver.in
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/scripts/ntpver.in')
-rw-r--r--contrib/ntp/scripts/ntpver.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/ntp/scripts/ntpver.in b/contrib/ntp/scripts/ntpver.in
new file mode 100644
index 0000000..be36897
--- /dev/null
+++ b/contrib/ntp/scripts/ntpver.in
@@ -0,0 +1,7 @@
+#!@PATH_SH@
+# print version string of NTP daemon
+# Copyright (c) 1997 by Ulrich Windl
+# Modified 970318: Harlan Stenn: rewritten...
+# usage: ntpver hostname
+
+ntpq -c "rv 0 daemon_version" $* | awk '/daemon_version/ { print $2 }'
OpenPOWER on IntegriCloud