From d421771bcea063b9bce551e06552067b9074d015 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 22 Aug 2019 08:54:05 +0200 Subject: startup: allow ctrl+c abort during boot sequence At the moment e.g. a wait for an ARP response during net boot can only aborted if the auto boot countdown was aborted. Otherwise ctrl+c is without effect. For better user experience allow code querying for ctrl+c to see it even if barebox had not dropped into a shell. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- common/startup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/startup.c') diff --git a/common/startup.c b/common/startup.c index b5b86d1141..c6e119966a 100644 --- a/common/startup.c +++ b/common/startup.c @@ -314,11 +314,11 @@ static int run_init(void) autoboot = do_autoboot_countdown(); + console_ctrlc_allow(); + if (autoboot == AUTOBOOT_BOOT) run_command("boot"); - console_ctrlc_allow(); - if (autoboot == AUTOBOOT_MENU) run_command(MENUFILE); -- cgit v1.2.3