summaryrefslogtreecommitdiff
path: root/templates/system/login
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2009-04-26 18:51:04 -0700
committerStig Thormodsrud <stig@vyatta.com>2009-04-26 18:51:04 -0700
commitf8e69a9cd0110168e270a1b95813ce0b4adfe283 (patch)
treeac8dca73b1d387ec67df7a297b544ba0c048f2b9 /templates/system/login
parent1fc94205234401e347613b9996d71698f98f1dd1 (diff)
downloadvyatta-cfg-system-f8e69a9cd0110168e270a1b95813ce0b4adfe283.tar.gz
vyatta-cfg-system-f8e69a9cd0110168e270a1b95813ce0b4adfe283.zip
Add configurable login banners.
Diffstat (limited to 'templates/system/login')
-rw-r--r--templates/system/login/banner/node.def1
-rw-r--r--templates/system/login/banner/post-login/node.def12
-rw-r--r--templates/system/login/banner/pre-login/node.def13
3 files changed, 26 insertions, 0 deletions
diff --git a/templates/system/login/banner/node.def b/templates/system/login/banner/node.def
new file mode 100644
index 00000000..2aef97a4
--- /dev/null
+++ b/templates/system/login/banner/node.def
@@ -0,0 +1 @@
+help: Set system login banners
diff --git a/templates/system/login/banner/post-login/node.def b/templates/system/login/banner/post-login/node.def
new file mode 100644
index 00000000..98c139b8
--- /dev/null
+++ b/templates/system/login/banner/post-login/node.def
@@ -0,0 +1,12 @@
+help: Set system loging banner post-login
+type: txt
+
+update: sudo /opt/vyatta/sbin/vyatta-banner.pl \
+ --action=update --banner-type=post-login
+
+delete: sudo /opt/vyatta/sbin/vyatta-banner.pl \
+ --action=delete --banner-type=post-login
+
+comp_help: possible completions:
+ <txt> Set login banner
+ (example: "\\n\\n\\tWelcome to Vyatta!\\n")
diff --git a/templates/system/login/banner/pre-login/node.def b/templates/system/login/banner/pre-login/node.def
new file mode 100644
index 00000000..7cb80380
--- /dev/null
+++ b/templates/system/login/banner/pre-login/node.def
@@ -0,0 +1,13 @@
+help: Set system loging banner pre-login
+type: txt
+
+update: sudo /opt/vyatta/sbin/vyatta-banner.pl \
+ --action=update --banner-type=pre-login
+
+delete: sudo /opt/vyatta/sbin/vyatta-banner.pl \
+ --action=delete --banner-type=pre-login
+
+comp_help: possible completions:
+ <txt> Set login banner
+ (example: "\\n\\n\\tUNAUTHORIZED USE OF THIS SYSTEM\\nIS PROHIBITED!\\n")
+