diff options
-rw-r--r-- | templates/show/ntp/node.tag/node.def | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def index ef69a68..d1f00d7 100644 --- a/templates/show/ntp/node.tag/node.def +++ b/templates/show/ntp/node.tag/node.def @@ -1,4 +1,4 @@ help: Show date and time of specified NTP server allowed: vyatta-allowed-hosts ntp.vyatta.com ; - sed -n 's/^server[ \t]\+//p' /etc/ntp.conf + awk '/^server/ { print $2 }' /etc/ntp.conf run: /usr/sbin/ntpdate -q ${3:-ntp.vyatta.com} |