diff options
author | Tom Grennan <tgrennan@io.vyatta.com> | 2007-11-29 15:03:03 -0800 |
---|---|---|
committer | Tom Grennan <tgrennan@io.vyatta.com> | 2007-11-29 15:03:03 -0800 |
commit | fc05a43ce19c57f8bb4abd68a8e973b9e048ea19 (patch) | |
tree | a25f28945d93e1ac384b9adf8d621ae40c7b1375 | |
parent | a9700af4fd0c2a033c9f32ae96ec0565931e563b (diff) | |
download | vyatta-op-fc05a43ce19c57f8bb4abd68a8e973b9e048ea19.tar.gz vyatta-op-fc05a43ce19c57f8bb4abd68a8e973b9e048ea19.zip |
include configured NTP servers in the expansion list of ntpdate
(i.e. "show ntp TAB/Alt-?")
-rw-r--r-- | templates/show/ntp/node.tag/node.def | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def index 0706975..a4a4443 100644 --- a/templates/show/ntp/node.tag/node.def +++ b/templates/show/ntp/node.tag/node.def @@ -1,3 +1,4 @@ help: Show date and time of given NTP server -allowed: vyatta-allowed-hosts ntp.vyatta.com +allowed: vyatta-allowed-hosts ntp.vyatta.com ; + sed -n 's/^server[ \t]\+//p' /etc/ntp.conf run: /usr/sbin/ntpdate -q ${3:-ntp.vyatta.com} |