From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] update qemu-ifup for modern ip route output Date: Fri, 18 Sep 2009 13:12:10 -0300 Message-ID: <20090918161210.GB3888@amt.cnet> References: <1253219918.12314.35.camel@x200> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Dustin Kirkland Return-path: Received: from mx1.redhat.com ([209.132.183.28]:46894 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbZIRQSu (ORCPT ); Fri, 18 Sep 2009 12:18:50 -0400 Content-Disposition: inline In-Reply-To: <1253219918.12314.35.camel@x200> Sender: kvm-owner@vger.kernel.org List-ID: Applied, thanks. On Thu, Sep 17, 2009 at 03:38:38PM -0500, Dustin Kirkland wrote: > 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 > --- > kvm/scripts/qemu-ifup | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/kvm/scripts/qemu-ifup b/kvm/scripts/qemu-ifup > index 3bf8801..284b176 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 > -- > 1.6.3.3 > >