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