summaryrefslogtreecommitdiff
path: root/templates/set
diff options
context:
space:
mode:
Diffstat (limited to 'templates/set')
-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 781bfbd..7add4fa 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; $s/$/\n--/' ${HOSTFILE:-/dev/null}
+allowed: sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d' ${HOSTFILE:-/dev/null} ;
+ echo --
run: sudo ntpdate ${4:-ntp.vyatta.com}