xref: /freebsd/usr.sbin/ntp/scripts/ntpver (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
1#!/bin/sh
2# $FreeBSD$
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 daemon_version" $* | awk '/daemon_version/ { print $2 }'
9