diff options
author | Christian Poessinger <christian@poessinger.com> | 2018-09-21 13:52:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-21 13:52:33 +0200 |
commit | 12d42bb85efa0658a9160bf7ce892514ee859293 (patch) | |
tree | 699dae2069febab360dbe7158ea4eca1d16f883f | |
parent | 680e431cfa58de0cdb42eb83b6e9abdb3ee54cb1 (diff) | |
parent | 549899e1f155a1d8816ea6b5b3dc130d5ca7b037 (diff) | |
download | vyos-1x-12d42bb85efa0658a9160bf7ce892514ee859293.tar.gz vyos-1x-12d42bb85efa0658a9160bf7ce892514ee859293.zip |
Merge pull request #40 from alkersan/clear_term
T689: Moved clear console and reset terminal ops from vyatta-op
-rw-r--r-- | Makefile | 1 | ||||
-rw-r--r-- | op-mode-definitions/terminal.xml | 29 |
2 files changed, 30 insertions, 0 deletions
@@ -24,6 +24,7 @@ op_mode_definitions: find $(CURDIR)/op-mode-definitions/ -type f -name "*.xml" | xargs -I {} $(CURDIR)/scripts/build-command-op-templates {} $(CURDIR)/schema/op-mode-definition.rng $(OP_TMPL_DIR) || exit 1 # XXX: delete top level op mode node.def's that now live in other packages + rm -f $(OP_TMPL_DIR)/clear/node.def rm -f $(OP_TMPL_DIR)/set/node.def rm -f $(OP_TMPL_DIR)/show/node.def rm -f $(OP_TMPL_DIR)/show/interfaces/node.def diff --git a/op-mode-definitions/terminal.xml b/op-mode-definitions/terminal.xml new file mode 100644 index 000000000..db74f867e --- /dev/null +++ b/op-mode-definitions/terminal.xml @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="clear"> + <properties> + <help>Clear system information</help> + </properties> + <children> + <node name="console"> + <properties> + <help>Clear screen</help> + </properties> + <command>/usr/bin/clear</command> + </node> + </children> + </node> + <node name="reset"> + <properties> + <help>Reset a service</help> + </properties> + <children> + <node name="terminal"> + <properties> + <help>Reset terminal</help> + </properties> + <command>/usr/bin/reset</command> + </node> + </children> + </node> +</interfaceDefinition> |