File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ PLATFORM=$(sonic-cfggen -H -v DEVICE_METADATA.localhost.platform)
2323PLATFORM_PLUGIN=" ${REBOOT_TYPE} _plugin"
2424LOG_SSD_HEALTH=" /usr/local/bin/log_ssd_health"
2525PLATFORM_FWUTIL_AU_REBOOT_HANDLE=" platform_fw_au_reboot_handle"
26+ PLATFORM_REBOOT_PRE_CHECK=" platform_reboot_pre_check"
2627SSD_FW_UPDATE=" ssd-fw-upgrade"
2728SSD_FW_UPDATE_BOOT_OPTION=no
2829TAG_LATEST=yes
@@ -179,6 +180,10 @@ function initialize_pre_shutdown()
179180
180181function request_pre_shutdown()
181182{
183+ if [ -x ${DEVPATH} /${PLATFORM} /${PLATFORM_REBOOT_PRE_CHECK} ]; then
184+ debug " Requesting platform reboot pre-check ..."
185+ ${DEVPATH} /${PLATFORM} /${PLATFORM_REBOOT_PRE_CHECK} ${REBOOT_TYPE}
186+ fi
182187 debug " Requesting pre-shutdown ..."
183188 STATE=$( timeout 5s docker exec syncd /usr/bin/syncd_request_shutdown --pre & > /dev/null; if [[ $? == 124 ]]; then echo " timed out" ; fi)
184189 if [[ x" ${STATE} " == x" timed out" ]]; then
You can’t perform that action at this time.
0 commit comments