mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/4] startup: allow ctrl+c abort during boot sequence
@ 2019-08-22  6:54 Ahmad Fatoum
  2019-08-22  6:54 ` [PATCH 2/4] libfile: have write_full return a descriptive error code Ahmad Fatoum
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ahmad Fatoum @ 2019-08-22  6:54 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

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 <a.fatoum@pengutronix.de>
---
 common/startup.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/common/startup.c b/common/startup.c
index 92bf94f849f1..d2f1b4846752 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -310,11 +310,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);
 
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-08-23  7:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-22  6:54 [PATCH 1/4] startup: allow ctrl+c abort during boot sequence Ahmad Fatoum
2019-08-22  6:54 ` [PATCH 2/4] libfile: have write_full return a descriptive error code Ahmad Fatoum
2019-08-22  6:54 ` [PATCH 3/4] ARM: i.MX: bbu: early exit when partition too small Ahmad Fatoum
2019-08-22  6:54 ` [PATCH 4/4] fs: omap4_usbbootfs: remove commented out code Ahmad Fatoum
2019-08-23  7:55 ` [PATCH 1/4] startup: allow ctrl+c abort during boot sequence Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox