[fw-upgrade] fix issue with fw-upgrade (#2785)
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
This commit is contained in:
parent
d038fd228a
commit
1aa258d3cb
@ -31,7 +31,7 @@ index c8261a3..bb27493 100755
|
|||||||
+ esac
|
+ 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
|
+ handle_simx
|
||||||
+ exit 0
|
+ exit 0
|
||||||
+fi
|
+fi
|
||||||
|
@ -230,7 +230,7 @@ function UpgradeFWFromImage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ExitIfQEMU() {
|
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"
|
ExitSuccess "No FW upgrade for SimX platform"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user