File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ PLATFORM=$(sonic-cfggen -H -v DEVICE_METADATA.localhost.platform)
23
23
PLATFORM_PLUGIN=" ${REBOOT_TYPE} _plugin"
24
24
LOG_SSD_HEALTH=" /usr/local/bin/log_ssd_health"
25
25
PLATFORM_FWUTIL_AU_REBOOT_HANDLE=" platform_fw_au_reboot_handle"
26
+ PLATFORM_REBOOT_PRE_CHECK=" platform_reboot_pre_check"
26
27
SSD_FW_UPDATE=" ssd-fw-upgrade"
27
28
SSD_FW_UPDATE_BOOT_OPTION=no
28
29
TAG_LATEST=yes
@@ -179,6 +180,10 @@ function initialize_pre_shutdown()
179
180
180
181
function request_pre_shutdown()
181
182
{
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
182
187
debug " Requesting pre-shutdown ..."
183
188
STATE=$( timeout 5s docker exec syncd /usr/bin/syncd_request_shutdown --pre & > /dev/null; if [[ $? == 124 ]]; then echo " timed out" ; fi)
184
189
if [[ x" ${STATE} " == x" timed out" ]]; then
You can’t perform that action at this time.
0 commit comments