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
This commit is contained in:
Dag-Erling Smørgrav 2015-10-08 08:55:08 +00:00
parent 3d5cb709bd
commit 2663942208
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289021

View File

@ -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