From c4092f2a8d0e63102bec1725ad6fc9046b04c687 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 10 Sep 2013 15:06:28 +0200 Subject: [PATCH] firewall.nix: Less verbosity --- modules/services/networking/firewall.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/services/networking/firewall.nix b/modules/services/networking/firewall.nix index 6261bab94a18..b24ac2d70325 100644 --- a/modules/services/networking/firewall.nix +++ b/modules/services/networking/firewall.nix @@ -245,10 +245,10 @@ in # Flush the old firewall rules. !!! Ideally, updating the # firewall would be atomic. Apparently that's possible # with iptables-restore. - ip46tables -D INPUT -j nixos-fw || true + ip46tables -D INPUT -j nixos-fw 2> /dev/null || true for chain in nixos-fw nixos-fw-accept nixos-fw-log-refuse nixos-fw-refuse FW_REFUSE; do - ip46tables -F "$chain" || true - ip46tables -X "$chain" || true + ip46tables -F "$chain" 2> /dev/null || true + ip46tables -X "$chain" 2> /dev/null || true done