We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaf7052 commit 613ac6fCopy full SHA for 613ac6f
device/mellanox/x86_64-mlnx_msn2700-r0/platform_reboot
@@ -5,7 +5,7 @@ declare -r EXIT_ERROR="1"
5
6
declare -r PENDING_COMPONENT_FW="/usr/bin/install-pending-fw.py"
7
declare -r FW_UPGRADE_SCRIPT="/usr/bin/mlnx-fw-upgrade.sh"
8
-declare -r SYSFS_PWR_CYCLE="/sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle"
+declare -r SYSFS_PWR_CYCLE="/var/run/hw-management/system/pwr_cycle"
9
10
FORCE_REBOOT="no"
11
@@ -24,8 +24,6 @@ function SafePwrCycle() {
24
sync ; sync
25
umount -fa > /dev/null 2&>1
26
echo 1 > $SYSFS_PWR_CYCLE
27
- sleep 3
28
- echo 0 > $SYSFS_PWR_CYCLE
29
}
30
31
ParseArguments "$@"
0 commit comments