From e799564f4457cf9b0a2811ea42e20364d961f2f2 Mon Sep 17 00:00:00 2001 From: Stephan Gerhold Date: Fri, 14 Feb 2025 13:54:31 +0100 Subject: [PATCH] cdba: Document behavior when omitting The option is optional in cdba. If omitted, cdba falls back to falls back to running "fastboot continue" to boot the installed operating system. --- README | 7 ++++--- cdba.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README b/README index af6a84c..1270d45 100644 --- a/README +++ b/README @@ -19,11 +19,12 @@ from sandbox/cdba/cdba-server. Available devices are read from $HOME/.cdba = Client side The client is invoked as: - cdba -b -h [-c ] [-s ] boot.img + cdba -b -h [-c ] [-s ] [boot.img] will be connected to using ssh and will be selected for -operation. As the board's fastboot interface shows up the given boot.img will -be transfered and booted on the device. +operation. As the board's fastboot interface shows up the given boot.img +will be transfered and booted on the device. If [boot.img] is omitted, +"fastboot continue" is run to boot the installed operating system. The board will execute until the key sequence ^A q is invoked or the board outputs a sequence of 20 ~ (tilde) chards in a row. diff --git a/cdba.c b/cdba.c index ee3809f..a526fad 100644 --- a/cdba.c +++ b/cdba.c @@ -584,7 +584,7 @@ static void usage(void) extern const char *__progname; fprintf(stderr, "usage: %s -b -h [-t ] " - "[-T ] \n", + "[-T ] [boot.img]\n", __progname); fprintf(stderr, "usage: %s -i -b -h \n", __progname);