diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-02-12 18:06:27 -0800 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-02-12 18:06:27 -0800 |
commit | 5e820945c90bd220f32f6ad7798bcd64ff52b5b6 (patch) | |
tree | 85ec2960a2e4127e905ddff8d352c74d411d9662 /templates | |
parent | ee70977b5fb4f7be25e7a33b17eb2081d591598c (diff) | |
download | vyatta-cfg-firewall-5e820945c90bd220f32f6ad7798bcd64ff52b5b6.tar.gz vyatta-cfg-firewall-5e820945c90bd220f32f6ad7798bcd64ff52b5b6.zip |
no need to use loop to echo allowed values
Diffstat (limited to 'templates')
-rw-r--r-- | templates/firewall/modify/node.tag/rule/node.tag/icmp/type-name/node.def | 7 | ||||
-rw-r--r-- | templates/firewall/name/node.tag/rule/node.tag/icmp/type-name/node.def | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/templates/firewall/modify/node.tag/rule/node.tag/icmp/type-name/node.def b/templates/firewall/modify/node.tag/rule/node.tag/icmp/type-name/node.def index 413f817..f61945c 100644 --- a/templates/firewall/modify/node.tag/rule/node.tag/icmp/type-name/node.def +++ b/templates/firewall/modify/node.tag/rule/node.tag/icmp/type-name/node.def @@ -12,12 +12,7 @@ array=(any echo-reply destination-unreachable network-unreachable ttl-zero-during-reassembly parameter-problem ip-header-bad required-option-missing timestamp-request timestamp-reply address-mask-request address-mask-reply) -len=${#array[*]} -i=0 -while [ $i -lt $len ]; do - echo "${array[$i]}" - let i++ -done +echo -n ${array[@]} syntax:expression: exec " array=(any echo-reply destination-unreachable network-unreachable diff --git a/templates/firewall/name/node.tag/rule/node.tag/icmp/type-name/node.def b/templates/firewall/name/node.tag/rule/node.tag/icmp/type-name/node.def index 413f817..f61945c 100644 --- a/templates/firewall/name/node.tag/rule/node.tag/icmp/type-name/node.def +++ b/templates/firewall/name/node.tag/rule/node.tag/icmp/type-name/node.def @@ -12,12 +12,7 @@ array=(any echo-reply destination-unreachable network-unreachable ttl-zero-during-reassembly parameter-problem ip-header-bad required-option-missing timestamp-request timestamp-reply address-mask-request address-mask-reply) -len=${#array[*]} -i=0 -while [ $i -lt $len ]; do - echo "${array[$i]}" - let i++ -done +echo -n ${array[@]} syntax:expression: exec " array=(any echo-reply destination-unreachable network-unreachable |