mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 10:48:02 +00:00
8 lines
227 B
Bash
Executable file
8 lines
227 B
Bash
Executable file
#!/bin/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 }'
|