summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDustin Kirkland <kirkland@canonical.com>2009-09-17 15:38:38 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2009-09-18 13:11:59 -0300
commit041ec89a5284131e716b1c2df93e549d67f03031 (patch)
tree40d340372ca98940cde9b7d1f7e2ac36cb89fb4d
parentqemu-kvm: Fix guest single-stepping (diff)
downloadqemu-kvm-041ec89a5284131e716b1c2df93e549d67f03031.tar.gz
qemu-kvm-041ec89a5284131e716b1c2df93e549d67f03031.tar.bz2
qemu-kvm-041ec89a5284131e716b1c2df93e549d67f03031.zip
update qemu-ifup for modern ip route output
update qemu-ifup for modern ip route output The output from the /sbin/ip utility has changed, adding two more columns, which breaks the qemu-ifup script, as it was depending on the last column being the interface name. Change this from $NF to $5. https://bugs.edge.launchpad.net/ubuntu/+source/qemu-kvm/+bug/430652 Signed-off-by: Dustin Kirkland <kirkland@canonical.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rwxr-xr-xkvm/scripts/qemu-ifup2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm/scripts/qemu-ifup b/kvm/scripts/qemu-ifup
index 3bf8801b7..284b176c1 100755
--- a/kvm/scripts/qemu-ifup
+++ b/kvm/scripts/qemu-ifup
@@ -1,5 +1,5 @@
#!/bin/sh
-switch=$(/sbin/ip route list | awk '/^default / { print $NF }')
+switch=$(/sbin/ip route list | awk '/^default / { print $5 }')
/sbin/ifconfig $1 0.0.0.0 up
/usr/sbin/brctl addif ${switch} $1