From bf2521dcdb09da8c4a4eaf3af0f61f6369ea6a85 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Wed, 20 May 2020 22:40:09 -0700 Subject: [PATCH] cdba: Distinguish between timeout before and after fastboot Exit with error code 2 if a timeout occured before fastboot had finished executing, to allow scripts to determine if the kernel timed out or if the board didn't finish fastboot. Signed-off-by: Bjorn Andersson --- cdba.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdba.c b/cdba.c index 8f3b481..e736836 100644 --- a/cdba.c +++ b/cdba.c @@ -677,7 +677,7 @@ int main(int argc, char **argv) tty_reset(orig_tios); if (reached_timeout) - return 110; + return fastboot_done ? 110 : 2; return (quit || received_power_off) ? 0 : 1; }