[Ovirt-devel] [PATCH-appliance 2/3] Fix up the awk script to *exactly* match the bridge we are looking for.

Chris Lalancette clalance at redhat.com
Wed Sep 10 06:39:46 UTC 2008


Signed-off-by: Chris Lalancette <clalance at redhat.com>
---
:100755 100755 035dce7... d3800e7... M	create-ovirt-appliance
 create-ovirt-appliance |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/create-ovirt-appliance b/create-ovirt-appliance
index 035dce7..d3800e7 100755
--- a/create-ovirt-appliance
+++ b/create-ovirt-appliance
@@ -220,7 +220,7 @@ fi
 # Remove old bridge device if it exists
 sed -i "/# $BRIDGENAME/d" /etc/rc.d/rc.local
 old_bridge=$(brctl show \
-    | awk -v BRIDGENAME=$BRIDGENAME '$1~BRIDGENAME {print $4}')
+    | awk -v BRIDGENAME=$BRIDGENAME '$1==BRIDGENAME {print $4}')
 if [ -n "$old_bridge" ]; then
     echo "Removing old bridge $old_bridge"
     ifconfig $old_bridge down
-- 
1.5.4.1




More information about the ovirt-devel mailing list