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 <bjorn.andersson@linaro.org>
This commit is contained in:
Bjorn Andersson
2020-05-20 22:40:09 -07:00
parent ca0564cdbb
commit bf2521dcdb

2
cdba.c
View File

@@ -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;
}