diff --git a/platform/mellanox/hw-management/0002-make-hw-mgmt-SimX-compatiable.patch b/platform/mellanox/hw-management/0002-make-hw-mgmt-SimX-compatiable.patch index aa8f4c4255..327023899d 100644 --- a/platform/mellanox/hw-management/0002-make-hw-mgmt-SimX-compatiable.patch +++ b/platform/mellanox/hw-management/0002-make-hw-mgmt-SimX-compatiable.patch @@ -31,7 +31,7 @@ index c8261a3..bb27493 100755 + esac +} + -+if [[ $(cat /sys/devices/virtual/dmi/id/chassis_vendor) -eq "QEMU" ]]; then ++if [[ $(cat /sys/devices/virtual/dmi/id/chassis_vendor) = "QEMU" ]]; then + handle_simx + exit 0 +fi diff --git a/platform/mellanox/mlnx-fw-upgrade.j2 b/platform/mellanox/mlnx-fw-upgrade.j2 index 30796cd6f9..3857244a15 100755 --- a/platform/mellanox/mlnx-fw-upgrade.j2 +++ b/platform/mellanox/mlnx-fw-upgrade.j2 @@ -230,7 +230,7 @@ function UpgradeFWFromImage() { } function ExitIfQEMU() { - if [[ $(cat /sys/devices/virtual/dmi/id/chassis_vendor) -eq "QEMU" ]]; then + if [[ $(cat /sys/devices/virtual/dmi/id/chassis_vendor) = "QEMU" ]]; then ExitSuccess "No FW upgrade for SimX platform" fi }