summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-03 16:30:31 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-03 16:32:03 +0200
commit2f55297aab87d3e9e7d4af17acd2235ca88ff562 (patch)
tree6b00947de3b3009e885eaee80de858080c23eafe /op-mode-definitions
parent9ab669d726d9e8658308e84804fb82bff6bb0bcb (diff)
downloadvyos-1x-2f55297aab87d3e9e7d4af17acd2235ca88ff562.tar.gz
vyos-1x-2f55297aab87d3e9e7d4af17acd2235ca88ff562.zip
op-mode: T2546: migrate "show license"
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/show-license.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/show-license.xml b/op-mode-definitions/show-license.xml
new file mode 100644
index 000000000..b6a2370a6
--- /dev/null
+++ b/op-mode-definitions/show-license.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <leafNode name="license">
+ <properties>
+ <help>Show VyOS license information</help>
+ </properties>
+ <command>less $_vyatta_less_options --prompt=".license, page %dt of %D" -- ${vyatta_sysconfdir}/LICENSE</command>
+ </leafNode>
+ </children>
+ </node>
+</interfaceDefinition>