From c0ae50b3f3ef1d33b6b1e2df2a11099985eb6f4e Mon Sep 17 00:00:00 2001 From: "j.turek" Date: Thu, 13 Mar 2025 16:27:39 +0100 Subject: [PATCH] swupdate-progress: allow to pass psplash options --- tools/swupdate-progress.c | 51 ++++++++++++++++++++++++++++++++++----- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/tools/swupdate-progress.c b/tools/swupdate-progress.c index bd5a7913..f298a38a 100644 --- a/tools/swupdate-progress.c +++ b/tools/swupdate-progress.c @@ -62,7 +62,7 @@ static void textcolor(int attr, int fg, int bg) static struct option long_options[] = { {"help", no_argument, NULL, 'h'}, - {"psplash", no_argument, NULL, 'p'}, + {"psplash", optional_argument, NULL, 'p'}, {"reboot", optional_argument, NULL, 'r'}, {"wait", no_argument, NULL, 'w'}, {"color", no_argument, NULL, 'c'}, @@ -83,14 +83,50 @@ static void usage(char *programname) " -r, --reboot [