From ea744de8b923285198f19043dae41e1058fd9fc1 Mon Sep 17 00:00:00 2001 From: sujinmkang Date: Sat, 8 Aug 2020 18:44:59 -0700 Subject: [PATCH] enable watchdog before running platform specific reboot plugin --- scripts/fast-reboot | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/fast-reboot b/scripts/fast-reboot index 27c22f2497..18d9b0724c 100755 --- a/scripts/fast-reboot +++ b/scripts/fast-reboot @@ -633,17 +633,18 @@ if [ -x /sbin/hwclock ]; then /sbin/hwclock -w || /bin/true fi -if [ -x ${DEVPATH}/${PLATFORM}/${PLATFORM_PLUGIN} ]; then - debug "Running ${PLATFORM} specific plugin..." - ${DEVPATH}/${PLATFORM}/${PLATFORM_PLUGIN} -fi - # Enable Watchdog Timer if [ -x ${WATCHDOG_UTIL} ]; then debug "Enabling Watchdog before ${REBOOT_TYPE}" ${WATCHDOG_UTIL} arm fi +# Run platform specific reboot plugin +if [ -x ${DEVPATH}/${PLATFORM}/${PLATFORM_PLUGIN} ]; then + debug "Running ${PLATFORM} specific plugin..." + ${DEVPATH}/${PLATFORM}/${PLATFORM_PLUGIN} +fi + # Reboot: explicity call Linux native reboot under sbin debug "Rebooting with ${REBOOT_METHOD} to ${NEXT_SONIC_IMAGE} ..." exec ${REBOOT_METHOD}