From: Marcelo Tosatti <mtosatti@redhat.com>
To: Dustin Kirkland <kirkland@canonical.com>
Cc: kvm@vger.kernel.org
Subject: Re: [PATCH] update qemu-ifup for modern ip route output
Date: Fri, 18 Sep 2009 13:12:10 -0300 [thread overview]
Message-ID: <20090918161210.GB3888@amt.cnet> (raw)
In-Reply-To: <1253219918.12314.35.camel@x200>
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 <kirkland@canonical.com>
> ---
> 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
>
>
prev parent reply other threads:[~2009-09-18 16:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-17 20:38 [PATCH] update qemu-ifup for modern ip route output Dustin Kirkland
2009-09-18 16:12 ` Marcelo Tosatti [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090918161210.GB3888@amt.cnet \
--to=mtosatti@redhat.com \
--cc=kirkland@canonical.com \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox