From 583cc8a963e6a294a4f583eb1887bb3a1f889af8 Mon Sep 17 00:00:00 2001 From: Pali Rohár Date: Sat, 23 Jun 2012 13:24:12 +0200 Subject: When identifing fiasco image, show all pieces --- src/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index c0b3607..ae35888 100644 --- a/src/main.c +++ b/src/main.c @@ -387,6 +387,7 @@ usb_detach_kernel_driver_np(dev, 2); int main(int argc, char **argv) { int c; + const char *type; while((c = getopt(argc, argv, "QC:cp:PvVhRu:ib:U:r:e:ld:I:D:f:F:s:xH:S:n")) != -1) { switch(c) { @@ -465,7 +466,10 @@ int main(int argc, char **argv) case 'P': return fiasco_pack(optind, argv); case 'I': - printf("%s: %s\n", fpid_file(optarg), optarg); + type = fpid_file(optarg); + printf("%s: %s\n", type, optarg); + if (type && strcmp(type, "fiasco") == 0) + openfiasco(optarg, NULL, 1); identify = 1; break; case 'C': -- cgit v1.2.3