summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk>2015-11-25 23:28:29 +0000
committerNathan Lasseter <Nathan Lasseter nathan@bytemark.co.uk>2015-11-25 23:28:29 +0000
commit775545866dd94e3c525c8a54b83313d9b0d3bf57 (patch)
tree958a474302e72061ae0eac1008bd6d251c47b97e
parent96aa6817a66c7a1f003ec0330ac3647c380e84b6 (diff)
Don't want the virbr0 interface to come up in mtu
-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"