From 42d75039842eed19d0b05da9d1f1c33c5d6547e9 Mon Sep 17 00:00:00 2001 From: teastep Date: Mon, 21 Oct 2002 18:13:28 +0000 Subject: [PATCH] Give better error message when getting the IP of a down interface git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@303 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall/firewall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/firewall b/Shorewall/firewall index b4f80d225..e28fc983d 100755 --- a/Shorewall/firewall +++ b/Shorewall/firewall @@ -2455,7 +2455,7 @@ setup_masq() iface="-o $interface" ;; *) - ipaddr="`run_ip addr show $subnet | grep 'inet '`" + ipaddr="`ip addr show $subnet 2> /dev/null | grep 'inet '`" source="$subnet" if [ -z "$ipaddr" ]; then fatal_error \