Skip to content

Commit 33ba594

Browse files
authored
enable watchdog before running platform specific reboot plugin (#1037)
1 parent fec442e commit 33ba594

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

scripts/fast-reboot

+6-5
Original file line numberDiff line numberDiff line change
@@ -633,17 +633,18 @@ if [ -x /sbin/hwclock ]; then
633633
/sbin/hwclock -w || /bin/true
634634
fi
635635
636-
if [ -x ${DEVPATH}/${PLATFORM}/${PLATFORM_PLUGIN} ]; then
637-
debug "Running ${PLATFORM} specific plugin..."
638-
${DEVPATH}/${PLATFORM}/${PLATFORM_PLUGIN}
639-
fi
640-
641636
# Enable Watchdog Timer
642637
if [ -x ${WATCHDOG_UTIL} ]; then
643638
debug "Enabling Watchdog before ${REBOOT_TYPE}"
644639
${WATCHDOG_UTIL} arm
645640
fi
646641
642+
# Run platform specific reboot plugin
643+
if [ -x ${DEVPATH}/${PLATFORM}/${PLATFORM_PLUGIN} ]; then
644+
debug "Running ${PLATFORM} specific plugin..."
645+
${DEVPATH}/${PLATFORM}/${PLATFORM_PLUGIN}
646+
fi
647+
647648
# Reboot: explicity call Linux native reboot under sbin
648649
debug "Rebooting with ${REBOOT_METHOD} to ${NEXT_SONIC_IMAGE} ..."
649650
exec ${REBOOT_METHOD}

0 commit comments

Comments
 (0)