sonic-buildimage/platform/mellanox/hw-management-wd.mk
Stepan Blyshchak a4dd0aa09f
[mellanox] add hardware watchdog script (#4274)
admin@sonic:~$ sudo hw-management-wd.sh
Usage: hw-management-wd.sh start [timeout] | stop | tleft | check_reset | help
start - start watchdog
        timeout is optional. Default value will be used in case if it's omitted
        timeout provided in seconds
stop - stop watchdog
tleft - check watchdog timeout left
check_reset - check if previous reset was caused by watchdog
        Prints only in case of watchdog reset
help -this help

Signed-off-by: Stepan Blyschak <stepanb@mellanox.com>
2020-03-31 20:34:55 -07:00

9 lines
239 B
Makefile

# Mellanox script for enabling/disabling hardware watchdog
HW_MANAGEMENT_WD_SCRIPT = hw-management-wd.sh
$(HW_MANAGEMENT_WD_SCRIPT)_PATH = platform/mellanox/
SONIC_COPY_FILES += $(HW_MANAGEMENT_WD_SCRIPT)
export HW_MANAGEMENT_WD_SCRIPT