diff options
author | marcus <marcus@FreeBSD.org> | 2011-05-26 06:30:46 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2011-05-26 06:30:46 +0800 |
commit | 3a4eff35e09a533cef4b685d8efa9e4d000b88e4 (patch) | |
tree | 2bcd20d6540d8abd75264b9364f19058d0a4d742 /sysutils | |
parent | 987286407ef0ea5be9b0ad498c03b70d7bf8bfac (diff) | |
download | freebsd-ports-gnome-3a4eff35e09a533cef4b685d8efa9e4d000b88e4.tar.gz freebsd-ports-gnome-3a4eff35e09a533cef4b685d8efa9e4d000b88e4.tar.zst freebsd-ports-gnome-3a4eff35e09a533cef4b685d8efa9e4d000b88e4.zip |
Fix detection of usb2 devd events.
Submitted by: hps
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/hal/Makefile | 2 | ||||
-rw-r--r-- | sysutils/hal/files/patch-hald_freebsd_hf-usb2.c | 14 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sysutils/hal/Makefile b/sysutils/hal/Makefile index a83cc2d3a01c..eed3c7c7b018 100644 --- a/sysutils/hal/Makefile +++ b/sysutils/hal/Makefile @@ -8,7 +8,7 @@ PORTNAME= hal DISTVERSION= 0.5.14 -PORTREVISION= 13 +PORTREVISION= 14 CATEGORIES= sysutils MASTER_SITES= http://hal.freedesktop.org/releases/ diff --git a/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c b/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c index 5e29b827b14c..d53d2a16694a 100644 --- a/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c +++ b/sysutils/hal/files/patch-hald_freebsd_hf-usb2.c @@ -129,17 +129,17 @@ + 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, .probe = hf_usb2_probe |