diff options
author | Runar Borge <runar@borge.nu> | 2018-06-07 23:27:09 +0200 |
---|---|---|
committer | Runar Borge <runar@borge.nu> | 2018-06-07 23:27:09 +0200 |
commit | 6b9e8d75d87b859a680f55c694354a24b132cde3 (patch) | |
tree | aecc19f24d87af1f97b9cb57d790a33b8418215d /op-mode-definitions/show-date.xml | |
parent | 0c7bb65bb8c8cbad68ab0902ec01ca0a2541ade1 (diff) | |
download | vyos-1x-6b9e8d75d87b859a680f55c694354a24b132cde3.tar.gz vyos-1x-6b9e8d75d87b859a680f55c694354a24b132cde3.zip |
T689: Convert show date to new syntax
Diffstat (limited to 'op-mode-definitions/show-date.xml')
-rw-r--r-- | op-mode-definitions/show-date.xml | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/show-date.xml b/op-mode-definitions/show-date.xml new file mode 100644 index 000000000..0edb4b1ff --- /dev/null +++ b/op-mode-definitions/show-date.xml @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="date"> + <properties> + <help>Show system time and date</help> + </properties> + <command>/bin/date</command> + <children> + <node name="utc"> + <properties> + <help>Show system date and time as Coordinated Universal Time</help> + </properties> + <command>/bin/date -u</command> + <children> + <node name="maya"> + <properties> + <help>Show UTC date in Maya calendar format</help> + </properties> + <command>${vyatta_bindir}/maya-date.py $(date +%s)</command> + </node> + </children> + </node> + </children> + </node> + + </children> + </node> +</interfaceDefinition> |