[Mellanox] update hw-mgmt patch for SimX (#4180)
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
This commit is contained in:
parent
df623b7e33
commit
70657cb182
@ -1,15 +1,15 @@
|
|||||||
From c6ee8c86c35f8b1e60bf4df0d7198f349f8552c1 Mon Sep 17 00:00:00 2001
|
From 6aecc8fed8cc78c1fb5c6b52bdfa3d07ca66e652 Mon Sep 17 00:00:00 2001
|
||||||
From: Stephen Sun <stephens@mellanox.com>
|
From: Mykola Faryma <mykolaf@mellanox.com>
|
||||||
Date: Wed, 25 Dec 2019 19:33:17 +0800
|
Date: Fri, 21 Feb 2020 12:28:54 +0200
|
||||||
Subject: [PATCH] Make hw-mgmt SimX compatiable.
|
Subject: [PATCH 1/1] Make hw-mgmt SimX compatiable
|
||||||
|
|
||||||
Signed-off-by: Stephen Sun <stephens@mellanox.com>
|
Signed-off-by: Mykola Faryma <mykolaf@mellanox.com>
|
||||||
---
|
---
|
||||||
usr/usr/bin/hw-management.sh | 29 +++++++++++++++++++++++++++++
|
usr/usr/bin/hw-management.sh | 29 +++++++++++++++++++++++++++++
|
||||||
1 file changed, 29 insertions(+)
|
1 file changed, 29 insertions(+)
|
||||||
|
|
||||||
diff --git a/usr/usr/bin/hw-management.sh b/usr/usr/bin/hw-management.sh
|
diff --git a/usr/usr/bin/hw-management.sh b/usr/usr/bin/hw-management.sh
|
||||||
index cff10fe..0511c7c 100755
|
index cff10fe..7f3c295 100755
|
||||||
--- a/usr/usr/bin/hw-management.sh
|
--- a/usr/usr/bin/hw-management.sh
|
||||||
+++ b/usr/usr/bin/hw-management.sh
|
+++ b/usr/usr/bin/hw-management.sh
|
||||||
@@ -737,6 +737,35 @@ do_chip_down()
|
@@ -737,6 +737,35 @@ do_chip_down()
|
||||||
@ -40,7 +40,7 @@ index cff10fe..0511c7c 100755
|
|||||||
+ esac
|
+ esac
|
||||||
+}
|
+}
|
||||||
+
|
+
|
||||||
+if [[ "$(cat /sys/devices/virtual/dmi/id/chassis_vendor)" = "QEMU" ]]; then
|
+if [[ "$(cat /sys/devices/virtual/dmi/id/sys_vendor)" = "QEMU" ]]; then
|
||||||
+ handle_simx
|
+ handle_simx
|
||||||
+ exit 0
|
+ exit 0
|
||||||
+fi
|
+fi
|
||||||
|
Loading…
Reference in New Issue
Block a user