From 1b64d687544bf0ba2f29e9c5699f1625b5b87119 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 21 Dec 2007 18:42:22 +0000 Subject: Revisit patch #2287. --- hardinfo2/arch/linux/common/storage.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/hardinfo2/arch/linux/common/storage.h b/hardinfo2/arch/linux/common/storage.h index 55987e23..6fd8c84d 100644 --- a/hardinfo2/arch/linux/common/storage.h +++ b/hardinfo2/arch/linux/common/storage.h @@ -105,13 +105,18 @@ __scan_scsi_devices(void) { NULL, "Generic", "scsi"} }; int i; - - for (i = 0; type2icon[i].type != NULL; i++) - if (strstr(buf + 8, type2icon[i].type)) - break; - - type = type2icon[i].label; - icon = type2icon[i].icon; + + if (strstr(model, "Flash Disk")) { + type = "Flash Disk"; + icon = "usbfldisk"; + } else { + for (i = 0; type2icon[i].type != NULL; i++) + if (g_str_equal(buf + 8, type2icon[i].type)) + break; + + type = type2icon[i].label; + icon = type2icon[i].icon; + } } gchar *devid = g_strdup_printf("SCSI%d", n); -- cgit v1.2.3