Skip to content

Commit 613ac6f

Browse files
committed
update reboot scripts
Signed-off-by: Kebo Liu <[email protected]>
1 parent aaf7052 commit 613ac6f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

device/mellanox/x86_64-mlnx_msn2700-r0/platform_reboot

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ declare -r EXIT_ERROR="1"
55

66
declare -r PENDING_COMPONENT_FW="/usr/bin/install-pending-fw.py"
77
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"
8+
declare -r SYSFS_PWR_CYCLE="/var/run/hw-management/system/pwr_cycle"
99

1010
FORCE_REBOOT="no"
1111

@@ -24,8 +24,6 @@ function SafePwrCycle() {
2424
sync ; sync
2525
umount -fa > /dev/null 2&>1
2626
echo 1 > $SYSFS_PWR_CYCLE
27-
sleep 3
28-
echo 0 > $SYSFS_PWR_CYCLE
2927
}
3028

3129
ParseArguments "$@"

0 commit comments

Comments
 (0)