On 9/25/07, Carlo Marcelo Arenas Belon <[EMAIL PROTECTED]> wrote:
> diff --git a/scripts/qemu-ifup b/scripts/qemu-ifup
> index 3bf8801..989fe9a 100755
> --- a/scripts/qemu-ifup
> +++ b/scripts/qemu-ifup
> @@ -1,5 +1,18 @@
>  #!/bin/sh
>
> -switch=$(/sbin/ip route list | awk '/^default / { print $NF }')
> +if [ -x /sbin/brctl ]; then
> +  BRCTL="/sbin/brctl"
> +elif [ -x /usr/sbin/brctl ]; then
> +  BRCTL="/usr/sbin/brctl"
> +else
> +  echo "no bridge utils installed"
> +  exit 1
> +fi
> +
> +if [ -x /sbin/ip ]; then
> +  switch=$(/sbin/ip route list | awk '/^default / { print $NF }')

NAK on this piece. This won't work with non-trivial setups (yes, I now
that the original script is broken too, but since you are touching
it...).
See:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=417151

IMHO it's better to rely on distro-specific scripts to setup the networking.

Luca

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
kvm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Reply via email to