diff options
author | Tom Grennan <tgrennan@vyatta.com> | 2007-10-03 10:31:37 -0700 |
---|---|---|
committer | Tom Grennan <tgrennan@vyatta.com> | 2007-10-03 10:31:37 -0700 |
commit | 613ffa56d28ba653c9d7917f6e9f1f2bd108ac97 (patch) | |
tree | c73879d3cec5a8c42f20bd6447ce497a40aa666c /templates/set/date | |
parent | a08c2e160af0c02e8a2ca45132ffddb7ca168d8e (diff) | |
download | vyatta-op-613ffa56d28ba653c9d7917f6e9f1f2bd108ac97.tar.gz vyatta-op-613ffa56d28ba653c9d7917f6e9f1f2bd108ac97.zip |
use the command verb "set" instead of "assign" with pass-through
of wild-card options to bash builtin
Diffstat (limited to 'templates/set/date')
-rw-r--r-- | templates/set/date/node.def | 1 | ||||
-rw-r--r-- | templates/set/date/node.tag/node.def | 3 | ||||
-rw-r--r-- | templates/set/date/ntp/node.def | 2 | ||||
-rw-r--r-- | templates/set/date/ntp/node.tag/node.def | 3 |
4 files changed, 9 insertions, 0 deletions
diff --git a/templates/set/date/node.def b/templates/set/date/node.def new file mode 100644 index 0000000..05aa096 --- /dev/null +++ b/templates/set/date/node.def @@ -0,0 +1 @@ +help: "Set date and time" diff --git a/templates/set/date/node.tag/node.def b/templates/set/date/node.tag/node.def new file mode 100644 index 0000000..2698b04 --- /dev/null +++ b/templates/set/date/node.tag/node.def @@ -0,0 +1,3 @@ +help: "Set date and time: MMDDhhmm[.ss]YYYY" +allowed: echo -n -- +run: sudo /bin/date $3 diff --git a/templates/set/date/ntp/node.def b/templates/set/date/ntp/node.def new file mode 100644 index 0000000..2ce1577 --- /dev/null +++ b/templates/set/date/ntp/node.def @@ -0,0 +1,2 @@ +help: "Set system date and time by NTP server [default: ntp.vyatta.com]" +run: sudo ntpdate ntp.vyatta.com diff --git a/templates/set/date/ntp/node.tag/node.def b/templates/set/date/ntp/node.tag/node.def new file mode 100644 index 0000000..781bfbd --- /dev/null +++ b/templates/set/date/ntp/node.tag/node.def @@ -0,0 +1,3 @@ +help: "Set system date and time with given NTP server" +allowed: sed 's/#.*//; s/^[^ \t]*[ \t]//; /^$/d; $s/$/\n--/' ${HOSTFILE:-/dev/null} +run: sudo ntpdate ${4:-ntp.vyatta.com} |