mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-09 00:51:29 +00:00
vboot_ui_menu: honour power button press in RECOVERY_NO_GOOD_SCREEN
Curretly power button press is ignored in RECOVERY_NO_GOOD_SCREEN, Allow user to power off system from RECOVERY_NO_GOOD_SCREEN. BUG=None Branch=None Test=verify that the system powers of from NO_GOOD screen. Change-Id: I768cd5a448c4493a4d9de756b2047c19cdf961ef Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.com> Signed-off-by: Rizwan Qureshi <rizwan.qureshi@intel.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/812304 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Wai-Hong Tam <waihong@google.com> Reviewed-by: Shelley Chen <shchen@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
805726997c
commit
626340420e
@@ -1115,7 +1115,8 @@ static VbError_t recovery_ui(struct vb2_context *ctx, VbCommonParams *cparams)
|
||||
* there), power button will turn off
|
||||
* device.
|
||||
*/
|
||||
if (current_menu == VB_MENU_RECOVERY_INSERT) {
|
||||
if (current_menu == VB_MENU_RECOVERY_INSERT ||
|
||||
current_menu == VB_MENU_RECOVERY_NO_GOOD) {
|
||||
ret = VBERROR_SHUTDOWN_REQUESTED;
|
||||
} else {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user