public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Asias He <asias.hejun@gmail.com>
To: Amos Kong <akong@redhat.com>
Cc: autotest@test.kernel.org, lmr@redhat.com, kvm@vger.kernel.org
Subject: Re: [PATCH v2 1/2] KVM-test: Add qemu-ifup-atbr0
Date: Wed, 04 May 2011 11:11:10 +0800	[thread overview]
Message-ID: <4DC0C3CE.8090109@gmail.com> (raw)
In-Reply-To: <20110504030117.16383.32625.stgit@t>

On 05/04/2011 11:01 AM, Amos Kong wrote:
> 'atbr0' is a private bridge.
> This script is used to setup tap device.
> 
> Signed-off-by: Amos Kong <akong@redhat.com>
> ---
>  client/tests/kvm/scripts/qemu-ifup-atbr0 |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>  create mode 100755 client/tests/kvm/scripts/qemu-ifup-atbr0
> 
> diff --git a/client/tests/kvm/scripts/qemu-ifup-atbr0 b/client/tests/kvm/scripts/qemu-ifup-atbr0
> new file mode 100755
> index 0000000..82c7efa
> --- /dev/null
> +++ b/client/tests/kvm/scripts/qemu-ifup-atbr0
> @@ -0,0 +1,6 @@
> +#!/bin/sh
> +switch=atbr0
> +/sbin/ifconfig $1 0.0.0.0 up
> +/usr/sbin/brctl addif ${switch} $1
> +/usr/sbin/brctl setfd ${switch} 0
> +/usr/sbin/brctl stp ${switch} off

brctl is not in /usr/sbin but /sbin in some systems, e.g. Debian.

	hj:~# which brctl
	/sbin/brctl

Does dropping this absolute path to brctl sound better?


-- 
Best Regards,
Asias He

  reply	other threads:[~2011-05-04  3:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1303184574.2088.4.camel@freedom>
2011-05-04  3:01 ` [PATCH v2 1/2] KVM-test: Add qemu-ifup-atbr0 Amos Kong
2011-05-04  3:11   ` Asias He [this message]
2011-05-04  3:23     ` Lucas Meneghel Rodrigues
2011-05-04  6:08       ` [PATCH v3 " Amos Kong
2011-05-04  6:10       ` [PATCH] KVM-test: Drop the absolute path of brctl/ifconfig Amos Kong
2011-05-04  3:01 ` [PATCH v2 2/2] KVM-test: Setup private bridge in framework Amos Kong

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=4DC0C3CE.8090109@gmail.com \
    --to=asias.hejun@gmail.com \
    --cc=akong@redhat.com \
    --cc=autotest@test.kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=lmr@redhat.com \
    /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