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:
des 2015-10-08 08:55:08 +00:00
parent ba153888c0
commit 3bf524186e

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