Contents of /trunk/sane-backends/patches/sane-backends-1.0.20-udev-rule.patch
Parent Directory | Revision Log
Revision 1024 -
(show annotations)
(download)
Sun Apr 25 17:22:38 2010 UTC (14 years, 6 months ago) by niro
File size: 1110 byte(s)
Sun Apr 25 17:22:38 2010 UTC (14 years, 6 months ago) by niro
File size: 1110 byte(s)
-added patch to fix udev rules
1 | --- tools/sane-desc.c.orig 2009-04-15 02:47:56.000000000 +0100 |
2 | +++ tools/sane-desc.c 2009-11-17 11:12:36.000000000 +0000 |
3 | @@ -3488,7 +3488,7 @@ |
4 | printf ("SUBSYSTEMS!=\"scsi\", GOTO=\"libsane_scsi_rules_end\"\n\n"); |
5 | printf ("LABEL=\"libsane_scsi_rules_begin\"\n"); |
6 | printf ("# Generic: SCSI device type 6 indicates a scanner\n"); |
7 | - printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP); |
8 | + printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP); |
9 | printf ("# Some scanners advertise themselves as SCSI device type 3\n"); |
10 | |
11 | while (scsiid) |
12 | @@ -3521,7 +3521,7 @@ |
13 | } |
14 | } |
15 | printf ("\n"); |
16 | - printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\"\n", |
17 | + printf ("KERNEL==\"sg[0-9]*\", ATTRS{type}==\"3\", ATTRS{vendor}==\"%s\", ATTRS{model}==\"%s\", MODE=\"%s\", GROUP=\"%s\"\n", |
18 | scsiid->scsi_vendor_id, scsiid->scsi_product_id, DEVMODE, DEVGROUP); |
19 | scsiid = scsiid->next; |
20 | } |