diff --git a/scripts/reboot b/scripts/reboot index 23092a56b62f..18d68f918aff 100755 --- a/scripts/reboot +++ b/scripts/reboot @@ -10,7 +10,7 @@ if [ -e $VMCORE_FILE -a -s $VMCORE_FILE ]; then echo "We have a /proc/vmcore, then we just kdump'ed" echo "User issued 'kdump' command [User: kdump, Time: ${REBOOT_TIME}]" > ${REBOOT_CAUSE_FILE} sync - PLATFORM=$(grep -oP 'platform=\K\S+' /proc/cmdline) + PLATFORM=$(grep -oP 'sonic_platform=\K\S+' /proc/cmdline) if [ ! -z "${PLATFORM}" -a -x ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} ]; then exec ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} fi