aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2015-10-08 08:55:08 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2015-10-08 08:55:08 +0000
commit2663942208e9f70aa402c3db9dfb7141f18c354a (patch)
tree91c4e8f37c9711d1c726986c48cae2869ea2ab46 /etc
parent3d5cb709bdbbdc0370ebb1d0932da00b019e92f4 (diff)
downloadsrc-2663942208e9f70aa402c3db9dfb7141f18c354a.tar.gz
src-2663942208e9f70aa402c3db9dfb7141f18c354a.zip
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
Notes
Notes: svn path=/head/; revision=289021
Diffstat (limited to 'etc')
-rwxr-xr-xetc/periodic/daily/480.status-ntpd2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/daily/480.status-ntpd b/etc/periodic/daily/480.status-ntpd
index 1eb80116f47b..1ff5cc516f5a 100755
--- a/etc/periodic/daily/480.status-ntpd
+++ b/etc/periodic/daily/480.status-ntpd
@@ -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