diff options
Diffstat (limited to 'templates/date/ntp')
-rw-r--r-- | templates/date/ntp/node.def | 3 | ||||
-rw-r--r-- | templates/date/ntp/op.tag/node.def | 3 | ||||
-rw-r--r-- | templates/date/ntp/set/node.def | 2 |
3 files changed, 4 insertions, 4 deletions
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} |