summaryrefslogtreecommitdiff
path: root/arch/linux/common/inputdevices.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/linux/common/inputdevices.h')
-rw-r--r--arch/linux/common/inputdevices.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/arch/linux/common/inputdevices.h b/arch/linux/common/inputdevices.h
index 8d2d8427..20e4289c 100644
--- a/arch/linux/common/inputdevices.h
+++ b/arch/linux/common/inputdevices.h
@@ -1,6 +1,6 @@
/*
* HardInfo - Displays System Information
- * Copyright (C) 2003-2006 Leandro A. F. Pereira <leandro@linuxmag.com.br>
+ * Copyright (C) 2003-2006 Leandro A. F. Pereira <leandro@hardinfo.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -115,9 +115,19 @@ __scan_input_devices(void)
}
strhash = h_strdup_cprintf("Product=0x%x\n"
- "Version=0x%x\n"
- "Connected to=%s\n",
- strhash, product, version, phys);
+ "Version=0x%x\n",
+ strhash, product, version);
+
+ if (phys[1] != 0) {
+ strhash = h_strdup_cprintf("Connected to=%s\n",
+ strhash, phys);
+ }
+
+ if (strstr(phys,"ir")) {
+ strhash = h_strdup_cprintf("InfraRed port=yes\n",
+ strhash);
+ }
+
g_hash_table_insert(moreinfo, tmp, strhash);
g_free(phys);