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
ba153888c0
commit
3bf524186e
@ -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…
x
Reference in New Issue
Block a user