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:
parent
3d5cb709bd
commit
2663942208
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=289021
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user