From 775545866dd94e3c525c8a54b83313d9b0d3bf57 Mon Sep 17 00:00:00 2001 From: Nathan Lasseter Date: Wed, 25 Nov 2015 23:28:29 +0000 Subject: Don't want the virbr0 interface to come up in mtu --- mtu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtu b/mtu index 8faf1a3..5385f3b 100755 --- a/mtu +++ b/mtu @@ -6,7 +6,7 @@ function actually_just_show { } function get_default_iface { - iface=$(ip a | grep "state UP" | cut -d: -f2 | tr -d '[[:space:]]') + iface=$(ip a | grep "state UP" | grep -v "virbr0" | cut -d: -f2 | tr -d '[[:space:]]') if [ "x" == "x$iface" ] then echo "No active iface" -- cgit v1.2.1