From 2663942208e9f70aa402c3db9dfb7141f18c354a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Thu, 8 Oct 2015 08:55:08 +0000 Subject: [PATCH] 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 --- etc/periodic/daily/480.status-ntpd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/periodic/daily/480.status-ntpd b/etc/periodic/daily/480.status-ntpd index 1eb80116f47b..1ff5cc516f5a 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