summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@io.vyatta.com>2007-11-29 15:03:03 -0800
committerTom Grennan <tgrennan@io.vyatta.com>2007-11-29 15:03:03 -0800
commitfc05a43ce19c57f8bb4abd68a8e973b9e048ea19 (patch)
treea25f28945d93e1ac384b9adf8d621ae40c7b1375
parenta9700af4fd0c2a033c9f32ae96ec0565931e563b (diff)
downloadvyatta-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.def3
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}