summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/scripts/ntpver.in
blob: be36897c46f7e39531b0450c52edc9a7850c3995 (plain)
1
2
3
4
5
6
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