From f8e69a9cd0110168e270a1b95813ce0b4adfe283 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Sun, 26 Apr 2009 18:51:04 -0700 Subject: Add configurable login banners. --- templates/system/login/banner/node.def | 1 + templates/system/login/banner/post-login/node.def | 12 ++++++++++++ templates/system/login/banner/pre-login/node.def | 13 +++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 templates/system/login/banner/node.def create mode 100644 templates/system/login/banner/post-login/node.def create mode 100644 templates/system/login/banner/pre-login/node.def (limited to 'templates/system') 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: + 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: + Set login banner + (example: "\\n\\n\\tUNAUTHORIZED USE OF THIS SYSTEM\\nIS PROHIBITED!\\n") + -- cgit v1.2.3