[fw-upgrade] fix issue with fw-upgrade (#2785)

Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
This commit is contained in:
Mykola F 2019-04-16 20:06:10 +03:00 committed by Ying Xie
parent d038fd228a
commit 1aa258d3cb
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}