summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2012-06-23 13:24:12 +0200
committerPali Rohár <pali.rohar@gmail.com>2012-06-23 13:24:12 +0200
commit583cc8a963e6a294a4f583eb1887bb3a1f889af8 (patch)
tree1cd393b1779138b54ba590140419fa7f92aaa784
parent491f06015ba3e2c3bc409295c204f941b3b46168 (diff)
download0xFFFF-583cc8a963e6a294a4f583eb1887bb3a1f889af8.tar.bz2
When identifing fiasco image, show all pieces
-rw-r--r--src/main.c6
1 files changed, 5 insertions, 1 deletions
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':