blob: eed657f2dadaca9cd0c9a98dbce49467c396a6f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
# }}}
}
|