direct-io.hg

changeset 4963:f0a55dae066b

bitkeeper revision 1.1159.258.135 (428a3218LRhrEVrFCYcKckXl2ziRCQ)

Backport of network script fix from unstable.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue May 17 18:04:08 2005 +0000 (2005-05-17)
parents 2c0074c64c33
children 019ead2b2718 c390ce4856bf
files tools/examples/network
line diff
     1.1 --- a/tools/examples/network	Tue May 17 17:50:51 2005 +0000
     1.2 +++ b/tools/examples/network	Tue May 17 18:04:08 2005 +0000
     1.3 @@ -164,6 +164,10 @@ op_start () {
     1.4  
     1.5      create_bridge ${bridge}
     1.6  
     1.7 +    if ifconfig 2>/dev/null | grep -q veth0 ; then
     1.8 +        return
     1.9 +    fi
    1.10 +
    1.11      if ifconfig veth0 2>/dev/null | grep -q veth0 ; then
    1.12          # Propagate MAC address and ARP responsibilities to virtual interface.
    1.13          mac=`ifconfig ${netdev} | grep HWadd | sed -e 's/.*\(..:..:..:..:..:..\).*/\1/'`