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}