diff options
Diffstat (limited to 'net-firewall/ipkungfu/files/ipkungfu_noiseless.patch')
-rw-r--r-- | net-firewall/ipkungfu/files/ipkungfu_noiseless.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-firewall/ipkungfu/files/ipkungfu_noiseless.patch b/net-firewall/ipkungfu/files/ipkungfu_noiseless.patch new file mode 100644 index 000000000000..eed657f2dada --- /dev/null +++ b/net-firewall/ipkungfu/files/ipkungfu_noiseless.patch @@ -0,0 +1,24 @@ +diff -ru ipkungfu-0.6.1.orig/ipkungfu.in ipkungfu-0.6.1/ipkungfu.in +--- ipkungfu-0.6.1.orig/ipkungfu.in 2007-01-22 04:47:04.000000000 +0100 ++++ ipkungfu-0.6.1/ipkungfu.in 2007-07-04 12:49:23.000000000 +0200 +@@ -753,11 +753,15 @@ + fi + + function delTestChain { +-# {{{ Flush and delete test chains +- $IPTABLES -t filter -F SYSTEST +- $IPTABLES -t filter -X SYSTEST +- $IPTABLES -t mangle -F SYSTEST +- $IPTABLES -t mangle -X SYSTEST ++# {{{ Flush and delete test chains, if exist ++ if $IPTABLES -t filter -L SYSTEST > /dev/null 2>&1 ; then ++ $IPTABLES -t filter -F SYSTEST ++ $IPTABLES -t filter -X SYSTEST ++ fi ++ if $IPTABLES -t mangle -L SYSTEST > /dev/null 2>&1 ; then ++ $IPTABLES -t mangle -F SYSTEST ++ $IPTABLES -t mangle -X SYSTEST ++ fi + # }}} + } + |