<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Wilhelm,</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>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.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>--</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal;"><span>Ilya</span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: 'times new roman', 'new york',
times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font size="2" face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Wilhelm <wilhelm.meier@fh-kl.de><br> <b><span style="font-weight: bold;">To:</span></b> Ilya V. Ivanchenko <iva2k@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "w.meier@unix.net" <w.meier@unix.net>; "sane-devel@lists.alioth.debian.org" <sane-devel@lists.alioth.debian.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, August 30, 2013 10:29 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: scanbd daemon does not load firmware<br> </font> </div> <div class="y_msg_container"><br>Am 31.08.2013 02:28, schrieb Ilya V. Ivanchenko:<br>> Thanks, that clarifies the situation and also explains what you meant by<br>> the callback. This external hook should be given in configuration file,<br>> like in /etc/scanbd/scanbd.conf. Do you
have a name you'd like for that<br>> option?<br><br>Well, could imagine "prepare_script" as an option name for the <br>scriptname. It's value should be an absolute path name or a relative <br>pathname, where the same rules apply as for all scripts (see scriptdir <br>option). And I would to pass it at most the same env vars the action <br>scripts receive. And additionally an env variable called "WHEN" (or make <br>it configurable) with the values "inserted" or "removed" or thelike.<br><br>I'm looking forward to your contribution!<br>Thanks!<br>-- <br>Wilhelm<br><a ymailto="mailto:w.meier@unix.net" href="mailto:w.meier@unix.net">w.meier@unix.net</a><br><br><br></div> </div> </div> </div></body></html>