From 876808923972de537426405f87d4439c46e99614 Mon Sep 17 00:00:00 2001 From: Sujin Kang Date: Thu, 14 Oct 2021 11:24:08 -0700 Subject: [PATCH] Remove exec from platform_reboot_plugin call to handle any hang issue. (#1879) What I did Remove exec from the platform_reboot call to handle any hang issue during reboot How I did it Remove "exec" from " exec ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} $@" How to verify it Perform sudo reboot after DE initializing the platfom driver and see if the device gracefully reboots by /sbin/reboot after failing on platform_reboot. --- scripts/reboot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/reboot b/scripts/reboot index a45f5d85a7..43f4ad0e49 100755 --- a/scripts/reboot +++ b/scripts/reboot @@ -198,7 +198,7 @@ fi if [ -x ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} ]; then VERBOSE=yes debug "Rebooting with platform ${PLATFORM} specific tool ..." - exec ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} $@ + ${DEVPATH}/${PLATFORM}/${PLAT_REBOOT} $@ # There are a couple reasons execution reaches here: #