aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-12-21 17:40:32 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-12-21 17:40:32 +0000
commit6d68aaea0d1c2ca41f41c4361e9b5e271c56bacc (patch)
tree79287310d5b211048b3a0e40b5f6d8c5ac6f511e /hardinfo2/arch
parent38ba22ed6721b2b533d80ab2eeb835e666e2c3d9 (diff)
[ Patch #2287 ] usb.h: adding new type of storage - flash disk. With icon.
Applied with minor modifications.
Diffstat (limited to 'hardinfo2/arch')
-rw-r--r--hardinfo2/arch/linux/common/storage.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/hardinfo2/arch/linux/common/storage.h b/hardinfo2/arch/linux/common/storage.h
index 067010c7..55987e23 100644
--- a/hardinfo2/arch/linux/common/storage.h
+++ b/hardinfo2/arch/linux/common/storage.h
@@ -101,12 +101,13 @@ __scan_scsi_devices(void)
{ "WORM", "CD-ROM", "cdrom"},
{ "CD-ROM", "CD-ROM", "cdrom"},
{ "Scanner", "Scanner", "scanner"},
+ { "Flash Disk", "USB Flash Disk", "usbfldisk" },
{ NULL, "Generic", "scsi"}
};
int i;
for (i = 0; type2icon[i].type != NULL; i++)
- if (g_str_equal(buf + 8, type2icon[i].type))
+ if (strstr(buf + 8, type2icon[i].type))
break;
type = type2icon[i].label;