diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-12-21 18:42:22 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-12-21 18:42:22 +0000 |
commit | 1b64d687544bf0ba2f29e9c5699f1625b5b87119 (patch) | |
tree | 556e6c65bdee61f6d6bb7f9821b19f51fa9bc89c /hardinfo2/arch | |
parent | 6d68aaea0d1c2ca41f41c4361e9b5e271c56bacc (diff) |
Revisit patch #2287.
Diffstat (limited to 'hardinfo2/arch')
-rw-r--r-- | hardinfo2/arch/linux/common/storage.h | 19 |
1 files 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); |