From: Justin Wind Date: Tue, 24 Jan 2017 22:15:19 +0000 (-0800) Subject: quiet creations X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=d8e6b8c435fc52365b43dcc61e1c3070e4a72c42;p=firewall-squeep quiet creations --- diff --git a/xenophobe.sh b/xenophobe.sh index 91d250a..d3edecb 100755 --- a/xenophobe.sh +++ b/xenophobe.sh @@ -20,7 +20,7 @@ create_set "${set_name}" hash:net create_set "${set_name}6" hash:net family inet6 # create or re-init chains -if ! $IPTABLES -L "${chain}" >/dev/null +if ! $IPTABLES -L "${chain}" >/dev/null 2>&1 then echo "initializing chain '${chain}'" $IPTABLES -N "${chain}" || $IPTABLES -F "${chain}" @@ -29,7 +29,7 @@ then $IPTABLES -v -L "${chain}" fi -if ! $IP6TABLES -L "${chain}" >/dev/null +if ! $IP6TABLES -L "${chain}" >/dev/null 2>&1 then echo "initializing chain '${chain}' ipv6" $IP6TABLES -N "${chain}" || $IP6TABLES -F "${chain}"