From c1f75c5c1170fe23334d1d0f39e5f957f7db8733 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 16 Dec 2007 22:36:04 +0000 Subject: [ Patch #2268 ] If device have InfraRed-port , in Program it will show this --- hardinfo2/arch/linux/common/inputdevices.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hardinfo2/arch/linux/common/inputdevices.h b/hardinfo2/arch/linux/common/inputdevices.h index 8d2d8427..e72ed786 100644 --- a/hardinfo2/arch/linux/common/inputdevices.h +++ b/hardinfo2/arch/linux/common/inputdevices.h @@ -118,6 +118,12 @@ __scan_input_devices(void) "Version=0x%x\n" "Connected to=%s\n", strhash, product, version, phys); + + if (strstr(phys,"ir")) { + strhash = h_strdup_cprintf("InfraRed port=yes\n", + strhash); + } + g_hash_table_insert(moreinfo, tmp, strhash); g_free(phys); -- cgit v1.2.3