kopia lustrzana https://gitlab.com/sane-project/backends
udev rules: set libsane_matched=yes for SCSI scanners too
Used later on by udev-acl to handle scanners.merge-requests/1/head
rodzic
e84e265f14
commit
323ed013e6
|
@ -1,3 +1,7 @@
|
|||
2010-06-21 Julien Blache <jb@jblache.org>
|
||||
* tools/sane-desc.c: udev rules: set libsane_matched=yes for SCSI
|
||||
devices too. Used by udev-acl later on.
|
||||
|
||||
2010-06-21 Stéphane Voltz <stef.dev@free.fr>
|
||||
* backend/genesys.c backend/genesys_devices.c backend/genesys_gl847.c
|
||||
backend/genesys_low.h: improve scan quality by using double x
|
||||
|
|
|
@ -3538,7 +3538,7 @@ print_udev (void)
|
|||
printf ("SUBSYSTEMS!=\"scsi\", GOTO=\"libsane_scsi_rules_end\"\n\n");
|
||||
printf ("LABEL=\"libsane_scsi_rules_begin\"\n");
|
||||
printf ("# Generic: SCSI device type 6 indicates a scanner\n");
|
||||
printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
|
||||
printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n", DEVMODE, DEVGROUP);
|
||||
printf ("# Some scanners advertise themselves as SCSI device type 3\n");
|
||||
|
||||
while (scsiid)
|
||||
|
@ -3571,7 +3571,7 @@ print_udev (void)
|
|||
}
|
||||
}
|
||||
printf ("\n");
|
||||
printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\"\n",
|
||||
printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\", ENV{libsane_matched}=\"yes\"\n",
|
||||
scsiid->scsi_vendor_id, scsiid->scsi_product_id, DEVMODE, DEVGROUP);
|
||||
scsiid = scsiid->next;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue