[sane-devel] patch for sane-desc.c / support for descfiles / modifications

Julien BLACHE jb at jblache.org
Mon Jan 12 14:37:21 UTC 2009


Dieter Jurzitza <dieter.jurzitza at t-online.de> wrote:

Hi,

> +  printf ("\nLABEL=\"libsane_usb_rules_end\"\n");
> +  printf ("\nSUBSYSTEMS!=\"scsi\", GOTO=\"libsane_scsi_rules_end\"\n");
> +  printf ("LABEL=\"libsane_scsi_rules_begin\"\n");
> +  printf ("# anything with device-id \"6\" in the SCSI-system is a scanner.\n");
> +  printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{type}==\"6\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
> +  printf ("# anything from HP with device-id \"3\" is treated accordingly (hal needs to make sure, finally).\n");
> +  printf ("KERNEL==\"sg[0-9]*\", NAME=\"%%k\", ATTRS{vendor}==\"HP\", ATTRS{type}==\"3\", MODE=\"%s\", GROUP=\"%s\"\n", DEVMODE, DEVGROUP);
> +  printf ("LABEL=\"libsane_scsi_rules_end\"\n");
> +  printf ("LABEL=\"libsane_rules_end\"\n");

Err, that sounds a little bit too generic. Could you generate rules to
match the SCSI scanners we know about, and only those, like is done
for USB scanners?

There's no way generic rules like that are going in, because it's a
given that they'll end up breaking something on users' systems down
the road.

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<jb at jblache.org>                                  GPG KeyID 0xF5D65169



More information about the sane-devel mailing list