From 27a5ac1261d5755189966798f72ff23414e9b032 Mon Sep 17 00:00:00 2001 From: Tom Grennan Date: Wed, 21 Nov 2007 12:59:28 -0800 Subject: allow "show ntp " --- templates/show/ntp/node.tag/node.def | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'templates/show') diff --git a/templates/show/ntp/node.tag/node.def b/templates/show/ntp/node.tag/node.def index 38828a8..b2678d8 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: sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d' ${HOSTFILE:-/dev/null} +allowed: echo -n HOSTNAME A.B.C.D X:X::X:X ntp.vyatta.com ; + sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d' ${HOSTFILE:-/dev/null} run: /usr/sbin/ntpdate -q ${3:-ntp.vyatta.com} -- cgit v1.2.3