From 4fa98996423059da7512015cb41e979a36751755 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Wed, 17 Dec 2014 07:27:15 -0600 Subject: [PATCH] udev rules add TEST=="power/control"... before trying to set ATTR{power/control}. See also: https://bugzilla.redhat.com/show_bug.cgi?id=950205 --- libfprint/fprint-list-udev-rules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfprint/fprint-list-udev-rules.c b/libfprint/fprint-list-udev-rules.c index 71c0b59..4b18f5a 100644 --- a/libfprint/fprint-list-udev-rules.c +++ b/libfprint/fprint-list-udev-rules.c @@ -74,7 +74,7 @@ static void print_driver (struct fp_driver *driver) 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}==\"*\", TEST==\"power/control\", ATTR{power/control}=\"auto\"\n", driver->id_table[i].vendor, driver->id_table[i].product); num_printed++; } -- 1.9.3