Rozdiely pre scripts/shell/firewall/fw-universal.sh medzi verziami 2.74 a 2.75
| verzia 2.74, 2010/08/08 23:34:25 |
verzia 2.75, 2010/10/22 12:20:42 |
|
|
| # Licensed under terms of GNU General Public License. |
# Licensed under terms of GNU General Public License. |
| # All rights reserved. |
# All rights reserved. |
| # |
# |
| # $Platon: scripts/shell/firewall/fw-universal.sh,v 2.73 2010-06-21 21:52:16 nepto Exp $ |
# $Platon: scripts/shell/firewall/fw-universal.sh,v 2.74 2010-08-08 23:34:25 nepto Exp $ |
| # |
# |
| # Changelog: |
# Changelog: |
| # 2003-10-24 - created |
# 2003-10-24 - created |
| Riadok 1035 custom_rules() |
|
| Riadok 1035 custom_rules() |
|
| if [ -z "${!varname}" ]; then |
if [ -z "${!varname}" ]; then |
| break; |
break; |
| fi |
fi |
| echo -n "#$i"; |
print_info -n "#$i"; |
| $IPTABLES ${!varname}; |
$IPTABLES ${!varname}; |
| rc="$?"; |
rc="$?"; |
| if [ "$rc" -eq 0 ]; then |
if [ "$rc" -eq 0 ]; then |
| echo -n "[OK] "; |
print_info -n "[OK] "; |
| else |
else |
| echo -n "[rc:$?] "; |
print_info -n "[rc:$?] "; |
| fi; |
fi; |
| initialized="yes"; |
initialized="yes"; |
| done |
done |
Platon Group <platon@platon.sk> http://platon.sk/
|
|