From 4a01e910ffb9a4321b72871e6227a750c05309de Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 21 Jan 2017 14:42:24 -0800 Subject: [PATCH] Delete unused iptablesbug() function Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index 9a6437717..39aec2199 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -78,29 +78,6 @@ showchain() # $1 = name of chain 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 #