forked from extern/shorewall_code
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:
parent
05071ca692
commit
42d7503984
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user