summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmtu2
1 files changed, 1 insertions, 1 deletions
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"