From 6d68aaea0d1c2ca41f41c4361e9b5e271c56bacc Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Fri, 21 Dec 2007 17:40:32 +0000 Subject: [ Patch #2287 ] usb.h: adding new type of storage - flash disk. With icon. Applied with minor modifications. --- hardinfo2/arch/linux/common/storage.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hardinfo2/arch/linux/common/storage.h') 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; -- cgit v1.2.3