ia64/xen-unstable

changeset 10120:ab27023d4c5b

Don't require sed to support the -r option.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Fri May 19 22:08:32 2006 +0100 (2006-05-19)
parents 08353fdf4031
children d081a485f34b
files tools/examples/network-bridge
line diff
     1.1 --- a/tools/examples/network-bridge	Fri May 19 22:00:28 2006 +0100
     1.2 +++ b/tools/examples/network-bridge	Fri May 19 22:08:32 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 / { print $NF }' | sed -r 's/[^0-9]+//')}
     1.8 +vifnum=${vifnum:-$(ip route list | awk '/^default / { print $NF }' | sed 's/^[^0-9]*//')}
     1.9  bridge=${bridge:-xenbr${vifnum}}
    1.10  netdev=${netdev:-eth${vifnum}}
    1.11  antispoof=${antispoof:-no}