xref: /freebsd/usr.sbin/ntp/scripts/ntpver (revision 4543ef516683042d46f3bd3bb8a4f3f746e00499)
1#!/bin/sh
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