diff options
author | iap10@pb007.cl.cam.ac.uk <iap10@pb007.cl.cam.ac.uk> | 2005-01-24 22:54:02 +0000 |
---|---|---|
committer | iap10@pb007.cl.cam.ac.uk <iap10@pb007.cl.cam.ac.uk> | 2005-01-24 22:54:02 +0000 |
commit | f90f7afb43b62f6732a3fea284146e9e0577dad3 (patch) | |
tree | b2adb2288c8e5c166719d56bb6b9fa5f5721df62 /tools | |
parent | eab8489a4970a3ad8b03d6b81499401e363c7ebb (diff) | |
parent | aac66e34a6f0fd9a3e084945cf5e6a4b9eb9fd56 (diff) | |
download | xen-f90f7afb43b62f6732a3fea284146e9e0577dad3.tar.gz xen-f90f7afb43b62f6732a3fea284146e9e0577dad3.tar.bz2 xen-f90f7afb43b62f6732a3fea284146e9e0577dad3.zip |
bitkeeper revision 1.1159.223.30 (41f57c8aGPV5CqOP-AQvc0TjHU_n8A)
Merge pb007.cl.cam.ac.uk:/auto/groups/xeno-xenod/BK/xen-2.0-testing.bk
into pb007.cl.cam.ac.uk:/auto/groups/xeno/users/iap10/xeno-clone/xen-2.0-testing.bk
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/examples/network | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/examples/network b/tools/examples/network index b679b93e43..229881d737 100755 --- a/tools/examples/network +++ b/tools/examples/network @@ -61,13 +61,13 @@ transfer_addrs () { local src=$1 local dst=$2 # Don't bother if $dst already has IP addresses. - if ip addr show dev ${dst} | egrep -q '^ *inet' ; then + if ip addr show dev ${dst} | egrep -q '^ *inet ' ; then return fi # Address lines start with 'inet' and have the device in them. # Replace 'inet' with 'ip addr add' and change the device name $src # to 'dev $src'. Remove netmask as we'll add routes later. - ip addr show dev ${src} | egrep '^ *inet' | sed -e " + ip addr show dev ${src} | egrep '^ *inet ' | sed -e " s/inet/ip addr add/ s@\([0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+\)/[0-9]\+@\1@ s/${src}/dev ${dst}/ |