svn commit: r289021 - head/etc/periodic/daily

Dag-Erling Smørgrav des at FreeBSD.org
Thu Oct 8 08:55:09 UTC 2015


Author: des
Date: Thu Oct  8 08:55:08 2015
New Revision: 289021
URL: https://svnweb.freebsd.org/changeset/base/289021

Log:
  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

Modified:
  head/etc/periodic/daily/480.status-ntpd

Modified: head/etc/periodic/daily/480.status-ntpd
==============================================================================
--- head/etc/periodic/daily/480.status-ntpd	Thu Oct  8 08:30:40 2015	(r289020)
+++ head/etc/periodic/daily/480.status-ntpd	Thu Oct  8 08:55:08 2015	(r289021)
@@ -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


More information about the svn-src-head mailing list