diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-12-21 17:40:32 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-12-21 17:40:32 +0000 |
commit | 6d68aaea0d1c2ca41f41c4361e9b5e271c56bacc (patch) | |
tree | 79287310d5b211048b3a0e40b5f6d8c5ac6f511e /hardinfo2/arch/linux | |
parent | 38ba22ed6721b2b533d80ab2eeb835e666e2c3d9 (diff) |
[ Patch #2287 ] usb.h: adding new type of storage - flash disk. With icon.
Applied with minor modifications.
Diffstat (limited to 'hardinfo2/arch/linux')
-rw-r--r-- | hardinfo2/arch/linux/common/storage.h | 3 |
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; |