mirror of
https://gitlab.com/shorewall/code.git
synced 2025-02-03 03:19:36 +01:00
Delete unused iptablesbug() function
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
2a010f827b
commit
4a01e910ff
@ -78,29 +78,6 @@ showchain() # $1 = name of chain
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
|
||||||
# The 'awk' hack that compensates for bugs in iptables-save (or rather in the extension modules).
|
|
||||||
#
|
|
||||||
|
|
||||||
iptablesbug()
|
|
||||||
{
|
|
||||||
if [ $g_family -eq 4 ]; then
|
|
||||||
if qt mywhich awk ; then
|
|
||||||
awk 'BEGIN { sline=""; };\
|
|
||||||
/^-[jg]/ { print sline $0; next };\
|
|
||||||
/-m policy.*-[jg] / { print $0; next };\
|
|
||||||
/-m policy/ { sline=$0; next };\
|
|
||||||
/--mask ff/ { sub( /--mask ff/, "--mask 0xff" ) };\
|
|
||||||
{ print ; sline="" }'
|
|
||||||
else
|
|
||||||
echo " WARNING: You don't have 'awk' on this system so the output of the save command may be unusable" >&2
|
|
||||||
cat
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
cat
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Validate the value of RESTOREFILE
|
# Validate the value of RESTOREFILE
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user