1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00

Fix detection of usb2 devd events.

Submitted by:	hps
This commit is contained in:
Joe Marcus Clarke 2011-05-25 22:30:46 +00:00
parent 8302d7bc78
commit 6f2c02851c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274659
2 changed files with 8 additions and 8 deletions

View File

@ -8,7 +8,7 @@
PORTNAME= hal
DISTVERSION= 0.5.14
PORTREVISION= 13
PORTREVISION= 14
CATEGORIES= sysutils
MASTER_SITES= http://hal.freedesktop.org/releases/

View File

@ -129,16 +129,16 @@
+ const char *type,
+ const char *data)
+{
+ if (! data || strcmp(system, "DEVFS") || strcmp(subsystem, "CDEV") ||
+ (strcmp(type, "CREATE") && strcmp(type, "DESTROY")))
+ if (! data || strcmp(system, "USB") || strcmp(subsystem, "DEVICE") ||
+ (strcmp(type, "ATTACH") && strcmp(type, "DETACH")))
+ return FALSE;
+
+ if (strstr(data, "cdev=ugen") != NULL ||
+ strstr(data, "cdev=usb") != NULL)
+ return TRUE;
+
+ return FALSE;
+ return TRUE;
+}
+
+
+
+
+
HFHandler hf_usb2_handler = {
.privileged_init = hf_usb2_privileged_init,