mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-11 16:18:13 +01:00
Speed up compilation
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@3404 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
d7bc2c20c2
commit
0917319ae9
@ -8306,16 +8306,12 @@ compile_firewall() # $1 = File Name
|
||||
|
||||
outfile=$1 dir=
|
||||
#
|
||||
# Overload a couple of functions from the library
|
||||
# Overload a function from the library
|
||||
#
|
||||
deletechain() # $1 = name of chain
|
||||
{
|
||||
save_command "qt \$IPTABLES -L $1 -n && qt \$IPTABLES -F $1 && qt \$IPTABLES -X $1"
|
||||
}
|
||||
|
||||
fix_bang() {
|
||||
echo $@ | sed 's/!/! /g'
|
||||
}
|
||||
#
|
||||
# END OVERLOADED FUNCTIONS
|
||||
#
|
||||
|
@ -118,22 +118,25 @@ expandv() # $* = list of variable names
|
||||
}
|
||||
|
||||
#
|
||||
# Replace all leading "!" with "! " in the passed argument list
|
||||
# Add whitespace after "!"
|
||||
#
|
||||
fix_bang()
|
||||
{
|
||||
local result=
|
||||
|
||||
fix_bang() {
|
||||
local i;
|
||||
|
||||
for i in $@; do
|
||||
case $i in
|
||||
while [ $# -gt 0 ]; do
|
||||
case $1 in
|
||||
!*)
|
||||
echo "! ${i#!}"
|
||||
result="$result ! ${1#!}"
|
||||
;;
|
||||
*)
|
||||
echo $i
|
||||
result="$result $1"
|
||||
;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
||||
echo $result
|
||||
}
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user