blktap2: a little fix to xen-hotplug-cleanup
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 06:23:21 +0000 (07:23 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 12 Apr 2010 06:23:21 +0000 (07:23 +0100)
Signed-off-by: James (Song Wei) <jsong@novell.com>
tools/hotplug/Linux/xen-hotplug-cleanup

index adaa9d6a238db0e76ae1961c3f6043c30bd4685c..2b5a2b45908678d6dc06047189ccb57af0382ae9 100644 (file)
@@ -21,7 +21,7 @@ if [ "$vm" != "" ]; then
 
   # if the vm path does not exist and the device class is 'vbd' then we may have
   # a tap2 device
-  if [ $(xenstore-read "$vm_dev" 2>/dev/null) != "" ] \
+  if [ "$(xenstore-read "$vm_dev" 2>/dev/null)" != "" ] \
        && [ "${path_array[1]}" = "vbd" ]; then
     vm_dev="$vm/device/tap2/${path_array[3]}"
   fi