summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Grennan <tgrennan@vyatta.com>2007-09-17 17:48:33 -0700
committerTom Grennan <tgrennan@vyatta.com>2007-09-17 17:48:33 -0700
commit855617c8fc38c67896dc3e7de59a47dfeafee26f (patch)
tree9b118748d83715c1494fc4d5a02d65a506076461
parentee7a0bb124bf9b33e3263c3330fccba98f3d0189 (diff)
downloadvyatta-op-855617c8fc38c67896dc3e7de59a47dfeafee26f.tar.gz
vyatta-op-855617c8fc38c67896dc3e7de59a47dfeafee26f.zip
fix date templates
-rw-r--r--templates/date/local/node.def2
-rw-r--r--templates/date/node.def3
-rw-r--r--templates/date/ntp/node.def3
-rw-r--r--templates/date/ntp/op.tag/node.def3
-rw-r--r--templates/date/ntp/set/node.def2
-rw-r--r--templates/date/op.tag/node.def2
-rw-r--r--templates/date/set/node.def2
-rw-r--r--templates/date/utc/node.def2
8 files changed, 12 insertions, 7 deletions
diff --git a/templates/date/local/node.def b/templates/date/local/node.def
new file mode 100644
index 0000000..942be57
--- /dev/null
+++ b/templates/date/local/node.def
@@ -0,0 +1,2 @@
+help: "Show system date and time with local timezone"
+run: /bin/date
diff --git a/templates/date/node.def b/templates/date/node.def
index 0b1187b..23b4ff3 100644
--- a/templates/date/node.def
+++ b/templates/date/node.def
@@ -1 +1,2 @@
-help: "Set system date and time"
+help: "Show system date and time"
+run: /bin/date -u
diff --git a/templates/date/ntp/node.def b/templates/date/ntp/node.def
index 9b5fb8b..bccd9c8 100644
--- a/templates/date/ntp/node.def
+++ b/templates/date/ntp/node.def
@@ -1 +1,2 @@
-help: "Set system date and time using NTP"
+help: "Show date and time of given NTP server [default: ntp.vyatta.com]"
+run: ntpdate -q ${3-ntp.vyatta.com}
diff --git a/templates/date/ntp/op.tag/node.def b/templates/date/ntp/op.tag/node.def
deleted file mode 100644
index b958310..0000000
--- a/templates/date/ntp/op.tag/node.def
+++ /dev/null
@@ -1,3 +0,0 @@
-type: txt
-help: "IP or hostname of NTP server"
-run: "sudo ntpdate $3"
diff --git a/templates/date/ntp/set/node.def b/templates/date/ntp/set/node.def
new file mode 100644
index 0000000..7f87d70
--- /dev/null
+++ b/templates/date/ntp/set/node.def
@@ -0,0 +1,2 @@
+help: "Synchronize system date and time with given NTP server"
+run: sudo ntpdate ${4-ntp.vyatta.com}
diff --git a/templates/date/op.tag/node.def b/templates/date/op.tag/node.def
deleted file mode 100644
index 01fb6b0..0000000
--- a/templates/date/op.tag/node.def
+++ /dev/null
@@ -1,2 +0,0 @@
-help: "Date and time [MMDDhhmm[.ss]YYYY]"
-run: sudo date $2
diff --git a/templates/date/set/node.def b/templates/date/set/node.def
new file mode 100644
index 0000000..e6815c1
--- /dev/null
+++ b/templates/date/set/node.def
@@ -0,0 +1,2 @@
+help: "Set date and time <MMDDhhmm[.ss]YYYY>"
+run: sudo /bin/date $3
diff --git a/templates/date/utc/node.def b/templates/date/utc/node.def
new file mode 100644
index 0000000..d24808f
--- /dev/null
+++ b/templates/date/utc/node.def
@@ -0,0 +1,2 @@
+help: "Show system date and time as Coordinated Universal Time"
+run: /bin/date -u