xref: /freebsd/contrib/ntp/scripts/ntpver.in (revision b0d29bc47dba79f6f38e67eabadfb4b32ffd9390)
1#!@CONFIG_SHELL@
2# print version string of NTP daemon
3# Copyright (c) 1997 by Ulrich Windl
4# Modified 970318: Harlan Stenn: rewritten...
5# usage: ntpver hostname
6
7ntpq -c "rv 0 daemon_version" $* | @AWK@ '/daemon_version/ { print $2 }'
8