diff options
Diffstat (limited to 'net-scripts/net.modules.d/iproute2')
-rw-r--r-- | net-scripts/net.modules.d/iproute2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net-scripts/net.modules.d/iproute2 b/net-scripts/net.modules.d/iproute2 index b9d0bed..f734e77 100644 --- a/net-scripts/net.modules.d/iproute2 +++ b/net-scripts/net.modules.d/iproute2 @@ -72,7 +72,7 @@ iproute2_down() { iproute2_is_up() { local check="\<UP\>" addr="${2:-false}" ${addr} && check="${check}.*inet " - ip addr show "$1" | grep -Eq "${check}" && return 0 + ip addr show "$1" | xargs | grep -Eq "${check}" && return 0 return 1 } |