From e91f4bbf73b2117374ce030959f75b7c7d8fae4a Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sat, 23 Jul 2011 12:45:38 +0100 Subject: [PATCH] functions.m4: Make clearchain tolerant of existing chains. It's a handy way to make chains which are populated elsewhere, e.g., by fail2ban. --- functions.m4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.m4 b/functions.m4 index b2e3cb6..fd24364 100644 --- a/functions.m4 +++ b/functions.m4 @@ -85,7 +85,7 @@ clearchain () { *:*) table=${chain%:*} chain=${chain#*:} ;; *) table=filter ;; esac - run ip46tables -t $table -N $chain + run ip46tables -t $table -N $chain 2>/dev/null || : done } -- 2.11.0