Files
libfprint/debian/patches/udev-rules-creation-add-Debian-specifics.patch
T
Didier Raboud 8019e85967 Patch the udev rules creator to include all devices.
The power/control blacklist is respected: 0483:2016 is blacklisted for
power/control but is supported by a built driver and as such, should get
a mode and group specification.

Closes: #679001
2012-06-26 09:56:36 +02:00

32 lines
1.1 KiB
Diff

Description: Tweak the udev rules creator for Debian usage
List all devices; automatic power/control only for the non-blacklisted
ones; mode and group to all.
Author: Didier Raboud <odyx@debian.org>
Origin: vendor
Last-Update: 2012-06-26
--- a/libfprint/fprint-list-udev-rules.c
+++ b/libfprint/fprint-list-udev-rules.c
@@ -54,9 +54,6 @@
break;
}
}
- if (blacklist)
- continue;
-
key = g_strdup_printf ("%04x:%04x", driver->id_table[i].vendor, driver->id_table[i].product);
if (g_hash_table_lookup (printed, key) != NULL) {
@@ -66,7 +63,10 @@
g_hash_table_insert (printed, key, GINT_TO_POINTER (1));
- printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", ATTR{power/control}=\"auto\"\n", driver->id_table[i].vendor, driver->id_table[i].product);
+ printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", ", driver->id_table[i].vendor, driver->id_table[i].product);
+ if (!blacklist)
+ printf ("ATTR{power/control}=\"auto\", ");
+ printf ("MODE=\"0664\", GROUP=\"plugdev\"\n");
}
}