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
This commit is contained in:
teastep 2002-10-21 18:13:28 +00:00
parent 05071ca692
commit 42d7503984

View File

@ -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 \