[Fingerforce-commits] [libfprint] 01/11: lib: Test before applying power saving udev rules
Didier Raboud
odyx at moszumanska.debian.org
Sun Apr 12 09:42:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch debian
in repository libfprint.
commit 79d79c3c875d41379eae418157a8254e87641f85
Author: Rex Dieter <rdieter at math.unl.edu>
Date: Wed Dec 17 07:27:15 2014 -0600
lib: Test before applying power saving udev rules
add TEST=="power/control"... to test for the presence of the file
before setting it.
See https://bugzilla.redhat.com/show_bug.cgi?id=950205
https://bugs.freedesktop.org/show_bug.cgi?id=87414
---
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++;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/fingerforce/libfprint.git
More information about the Fingerforce-commits
mailing list