[sane-devel] scanbd daemon does not load firmware

Ilya V. Ivanchenko iva2k at yahoo.com
Fri Sep 20 04:36:09 UTC 2013


Wilhelm,
Here's a patch that implements device insertion/removal hooks. I've tested it with scanbuttond backend and it solves the problem of firmware not being loaded to the scanner.
--
Ilya


________________________________
 From: Wilhelm <wilhelm.meier at fh-kl.de>
To: Ilya V. Ivanchenko <iva2k at yahoo.com> 
Cc: "w.meier at unix.net" <w.meier at unix.net>; "sane-devel at lists.alioth.debian.org" <sane-devel at lists.alioth.debian.org> 
Sent: Friday, August 30, 2013 10:29 PM
Subject: Re: scanbd daemon does not load firmware
 

Am 31.08.2013 02:28, schrieb Ilya V. Ivanchenko:
> Thanks, that clarifies the situation and also explains what you meant by
> the callback. This external hook should be given in configuration file,
> like in /etc/scanbd/scanbd.conf. Do you have a name you'd like for that
> option?

Well, could imagine "prepare_script" as an option name for the 
scriptname. It's value should be an absolute path name or a relative 
pathname, where the same rules apply as for all scripts (see scriptdir 
option). And I would to pass it at most the same env vars the action 
scripts receive. And additionally an env variable called "WHEN" (or make 
it configurable) with the values "inserted" or "removed" or thelike.

I'm looking forward to your contribution!
Thanks!
-- 
Wilhelm
w.meier at unix.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130919/430151fc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scanbd-hooks-iva2k-20130919.patch
Type: text/x-patch
Size: 10730 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20130919/430151fc/attachment.bin>


More information about the sane-devel mailing list