diff options
author | des <des@FreeBSD.org> | 2015-10-08 08:55:08 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2015-10-08 08:55:08 +0000 |
commit | 3bf524186ec926516e59e9c8fedc3712eb44d967 (patch) | |
tree | 91c4e8f37c9711d1c726986c48cae2869ea2ab46 /etc/periodic | |
parent | ba153888c0f9d5595823c23971029c88599a5682 (diff) | |
download | FreeBSD-src-3bf524186ec926516e59e9c8fedc3712eb44d967.zip FreeBSD-src-3bf524186ec926516e59e9c8fedc3712eb44d967.tar.gz |
Add -n to the ntpq command line so it will show IP addresses instead of
host names, which rarely fit in the available space.
MFC after: 1 week
Diffstat (limited to 'etc/periodic')
-rwxr-xr-x | etc/periodic/daily/480.status-ntpd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/daily/480.status-ntpd b/etc/periodic/daily/480.status-ntpd index 1eb8011..1ff5cc5 100755 --- a/etc/periodic/daily/480.status-ntpd +++ b/etc/periodic/daily/480.status-ntpd @@ -18,7 +18,7 @@ case "$daily_status_ntpd_enable" in echo "" echo "NTP status:" - synchronized=$(ntpq -p | tee /dev/stderr | grep '^\*') + synchronized=$(ntpq -pn | tee /dev/stderr | grep '^\*') if [ -z "$synchronized" ]; then rc=1 fi |