Hi Ilya, Am 20.09.2013 06:36, schrieb Ilya V. Ivanchenko: > 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.
thanks again. Just added the patches! > -- > 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 <mailto:w.meier at unix.net> > > > > -- Wilhelm w.meier at unix.net