ia64/xen-unstable

changeset 10119:08353fdf4031

Make the latest network-bridge tweaks work in a busybox environment too.

Signed-off-by: David Lively <dlively@virtualiron.com>
author cl349@firebug.cl.cam.ac.uk
date Fri May 19 22:00:28 2006 +0100 (2006-05-19)
parents 3c2e7925bb93
children ab27023d4c5b
files tools/examples/network-bridge
line diff
     1.1 --- a/tools/examples/network-bridge	Fri May 19 17:50:32 2006 +0100
     1.2 +++ b/tools/examples/network-bridge	Fri May 19 22:00:28 2006 +0100
     1.3 @@ -59,7 +59,7 @@ dir=$(dirname "$0")
     1.4  findCommand "$@"
     1.5  evalVariables "$@"
     1.6  
     1.7 -vifnum=${vifnum:-$(ip route list | awk '/^default / { sub(/^(eth|xenbr)/,"",$NF); print $NF }')}
     1.8 +vifnum=${vifnum:-$(ip route list | awk '/^default / { print $NF }' | sed -r 's/[^0-9]+//')}
     1.9  bridge=${bridge:-xenbr${vifnum}}
    1.10  netdev=${netdev:-eth${vifnum}}
    1.11  antispoof=${antispoof:-no}