From 5fe173b7fb5727727babb7539ba13f8d8d1deaa7 Mon Sep 17 00:00:00 2001 From: Mykola Faryma Date: Mon, 15 Apr 2019 11:40:40 +0300 Subject: [PATCH] [fw-upgrade] fix issue with fw-upgrade Signed-off-by: Mykola Faryma --- .../hw-management/0002-make-hw-mgmt-SimX-compatiable.patch | 2 +- platform/mellanox/mlnx-fw-upgrade.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 aa8f4c42558..327023899d7 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 30796cd6f94..3857244a150 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 }