diff options
Diffstat (limited to 'templates')
5 files changed, 30 insertions, 4 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") + diff --git a/templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def b/templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def index 1283f55c..e34cf8c4 100644 --- a/templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def +++ b/templates/zone-policy/zone/node.tag/from/node.tag/firewall/ipv6-name/node.def @@ -7,7 +7,7 @@ allowed: echo -n ${params[@]##*/} create: - params=( `ls /opt/vyatta/config/active/firewall/ipv6-name` ) + params=( `ls /opt/vyatta/config/active/firewall/ipv6-name 2>/dev/null` ) array_len=${#params[*]} i=0 found=0 @@ -31,7 +31,7 @@ create: --ruleset-name="$VAR(@)" update: - params=( `ls /opt/vyatta/config/active/firewall/ipv6-name` ) + params=( `ls /opt/vyatta/config/active/firewall/ipv6-name 2>/dev/null` ) array_len=${#params[*]} i=0 found=0 diff --git a/templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def b/templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def index 8fc557c5..20dd913e 100644 --- a/templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def +++ b/templates/zone-policy/zone/node.tag/from/node.tag/firewall/name/node.def @@ -7,7 +7,7 @@ allowed: echo -n ${params[@]##*/} create: - params=( `ls /opt/vyatta/config/active/firewall/name` ) + params=( `ls /opt/vyatta/config/active/firewall/name 2>/dev/null` ) array_len=${#params[*]} i=0 found=0 @@ -31,7 +31,7 @@ create: --ruleset-name="$VAR(@)" update: - params=( `ls /opt/vyatta/config/active/firewall/name` ) + params=( `ls /opt/vyatta/config/active/firewall/name 2>/dev/null` ) array_len=${#params[*]} i=0 found=0 |