1 |
--- hal-0.4.2/tools/linux/hal_hotplug.c.~1~ 2004-10-18 17:52:05.000000000 -0500 |
2 |
+++ hal-0.4.2/tools/linux/hal_hotplug.c 2005-08-22 23:04:13.000000000 -0500 |
3 |
@@ -316,7 +316,13 @@ main (int argc, char *argv[], char *envp |
4 |
|
5 |
devpath = getenv ("DEVPATH"); |
6 |
if (devpath == NULL) { |
7 |
- syslog (LOG_ERR, "DEVPATH is not set"); |
8 |
+ /* Ugly hack, but in < 2.6.13 (at least) kernels, |
9 |
+ * the input subsystem doesn't set DEVPATH, but we |
10 |
+ * know that, so don't bother warning sysadmins |
11 |
+ * all the time. |
12 |
+ */ |
13 |
+ if (strncmp(subsystem, "input", 5)) |
14 |
+ syslog (LOG_ERR, "DEVPATH is not set"); |
15 |
goto out; |
16 |
} |
17 |
|