mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 17:58:07 +02: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=
|
outfile=$1 dir=
|
||||||
#
|
#
|
||||||
# Overload a couple of functions from the library
|
# Overload a function from the library
|
||||||
#
|
#
|
||||||
deletechain() # $1 = name of chain
|
deletechain() # $1 = name of chain
|
||||||
{
|
{
|
||||||
save_command "qt \$IPTABLES -L $1 -n && qt \$IPTABLES -F $1 && qt \$IPTABLES -X $1"
|
save_command "qt \$IPTABLES -L $1 -n && qt \$IPTABLES -F $1 && qt \$IPTABLES -X $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
fix_bang() {
|
|
||||||
echo $@ | sed 's/!/! /g'
|
|
||||||
}
|
|
||||||
#
|
#
|
||||||
# END OVERLOADED FUNCTIONS
|
# 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() {
|
while [ $# -gt 0 ]; do
|
||||||
local i;
|
case $1 in
|
||||||
|
|
||||||
for i in $@; do
|
|
||||||
case $i in
|
|
||||||
!*)
|
!*)
|
||||||
echo "! ${i#!}"
|
result="$result ! ${1#!}"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo $i
|
result="$result $1"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo $result
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user