summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-11-21 12:04:44 -0800
committerTom Grennan <tgrennan@vyatta.com>2007-11-21 12:04:44 -0800
commit5f9f162a681a3d5541a8a97ca30cc191056ec172 (patch)
tree4a0e58188069cccc2bb7589e6221e2817d8fb56a
parent0df0966f5b0e226f2899c229ee98b466c6f7ddfa (diff)
downloadvyatta-op-5f9f162a681a3d5541a8a97ca30cc191056ec172.tar.gz
vyatta-op-5f9f162a681a3d5541a8a97ca30cc191056ec172.zip
set date ntp [HOSTNAME | A.B.C.D | X:X::X:X | ntp.vyatta.com ]
-rw-r--r--templates/set/date/ntp/node.tag/node.def3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/set/date/ntp/node.tag/node.def b/templates/set/date/ntp/node.tag/node.def
index be4de16..3d573f7 100644
--- a/templates/set/date/ntp/node.tag/node.def
+++ b/templates/set/date/ntp/node.tag/node.def
@@ -1,3 +1,4 @@
help: Set system date and time with 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: sudo ntpdate ${4:-ntp.vyatta.com}