Skip to content

Commit 1aa258d

Browse files
mykolafyxieca
authored andcommitted
[fw-upgrade] fix issue with fw-upgrade (#2785)
Signed-off-by: Mykola Faryma <[email protected]>
1 parent d038fd2 commit 1aa258d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform/mellanox/hw-management/0002-make-hw-mgmt-SimX-compatiable.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ index c8261a3..bb27493 100755
3131
+ esac
3232
+}
3333
+
34-
+if [[ $(cat /sys/devices/virtual/dmi/id/chassis_vendor) -eq "QEMU" ]]; then
34+
+if [[ $(cat /sys/devices/virtual/dmi/id/chassis_vendor) = "QEMU" ]]; then
3535
+ handle_simx
3636
+ exit 0
3737
+fi

platform/mellanox/mlnx-fw-upgrade.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function UpgradeFWFromImage() {
230230
}
231231

232232
function ExitIfQEMU() {
233-
if [[ $(cat /sys/devices/virtual/dmi/id/chassis_vendor) -eq "QEMU" ]]; then
233+
if [[ $(cat /sys/devices/virtual/dmi/id/chassis_vendor) = "QEMU" ]]; then
234234
ExitSuccess "No FW upgrade for SimX platform"
235235
fi
236236
}

0 commit comments

Comments
 (0)