From 32e4111df5698438832a11348279e7b956215388 Mon Sep 17 00:00:00 2001 From: "Koushik K. Dutta" Date: Sun, 7 Mar 2010 14:11:56 -0800 Subject: [PATCH] reboot upon extendedcommand success --- recovery.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recovery.c b/recovery.c index 62dd8e2..afbb5a5 100644 --- a/recovery.c +++ b/recovery.c @@ -553,8 +553,11 @@ main(int argc, char **argv) is_user_initiated_recovery = 1; ui_set_show_text(1); - if (extendedcommand_file_exists()) - run_and_remove_extendedcommand(); + if (extendedcommand_file_exists()) { + if (0 == run_and_remove_extendedcommand()) { + status = INSTALL_SUCCESS; + } + } } if (status != INSTALL_SUCCESS && !is_user_initiated_recovery) ui_set_background(BACKGROUND_ICON_ERROR);