mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
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"
|
iface="-o $interface"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
ipaddr="`run_ip addr show $subnet | grep 'inet '`"
|
ipaddr="`ip addr show $subnet 2> /dev/null | grep 'inet '`"
|
||||||
source="$subnet"
|
source="$subnet"
|
||||||
if [ -z "$ipaddr" ]; then
|
if [ -z "$ipaddr" ]; then
|
||||||
fatal_error \
|
fatal_error \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user