From 549899e1f155a1d8816ea6b5b3dc130d5ca7b037 Mon Sep 17 00:00:00 2001 From: Dmytro Aleksandrov Date: Tue, 21 Aug 2018 08:39:16 +0300 Subject: T689: Moved clear console and reset terminal ops from vyatta-op --- Makefile | 1 + op-mode-definitions/terminal.xml | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 op-mode-definitions/terminal.xml diff --git a/Makefile b/Makefile index 70101181d..6a3596875 100644 --- a/Makefile +++ b/Makefile @@ -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)/reset/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 @@ + + + + + Clear system information + + + + + Clear screen + + /usr/bin/clear + + + + + + Reset a service + + + + + Reset terminal + + /usr/bin/reset + + + + -- cgit v1.2.3