ia64/xen-unstable

changeset 10277:275955c6df9d

network-bridge: Fall back to eth0/xenbr0 if no default route.
From: Dave Lively <dave.lively@gmail.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@dhcp93.uk.xensource.com
date Thu Jun 01 11:18:26 2006 +0100 (2006-06-01)
parents 2a0208b33c30
children 4142bfd01e02
files tools/examples/network-bridge
line diff
     1.1 --- a/tools/examples/network-bridge	Thu Jun 01 11:04:06 2006 +0100
     1.2 +++ b/tools/examples/network-bridge	Thu Jun 01 11:18:26 2006 +0100
     1.3 @@ -60,6 +60,7 @@ findCommand "$@"
     1.4  evalVariables "$@"
     1.5  
     1.6  vifnum=${vifnum:-$(ip route list | awk '/^default / { print $NF }' | sed 's/^[^0-9]*//')}
     1.7 +vifnum={$vifnum:-0}
     1.8  bridge=${bridge:-xenbr${vifnum}}
     1.9  netdev=${netdev:-eth${vifnum}}
    1.10  antispoof=${antispoof:-no}