mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-11 10:34:18 +00:00
32 lines
1.1 KiB
Diff
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
|
|
@@ -59,9 +59,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) {
|
|
@@ -74,7 +71,10 @@
|
|
if (num_printed == 0)
|
|
printf ("# %s\n", driver->full_name);
|
|
|
|
- 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");
|
|
num_printed++;
|
|
}
|
|
|