From c02b71b530d302e759822ef831d18a59f068a1e6 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Sat, 12 May 2018 08:09:46 -0700 Subject: [PATCH] Correct interface_is_up() to look for the 'state' as well as 'UP' Signed-off-by: Tom Eastep --- Shorewall/Perl/lib.runtime | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shorewall/Perl/lib.runtime b/Shorewall/Perl/lib.runtime index f8d8fdcdc..b06075261 100644 --- a/Shorewall/Perl/lib.runtime +++ b/Shorewall/Perl/lib.runtime @@ -192,7 +192,7 @@ find_default_interface() { # Determine if Interface is up # interface_is_up() { - [ -n "$($IP -$g_family link list dev $1 2> /dev/null | grep -e '[<,]UP[,>]')" ] + [ -n "$($IP -$g_family link list dev $1 2> /dev/null | grep -e '[<,]UP[,>]' | grep -v ' state DOWN ')" ] } #