[sane-devel] Calling a script after USB scanner is plugged

Julien BLACHE jb at jblache.org
Wed Apr 23 16:54:00 UTC 2008

Johannes Meixner <jsmeix at suse.de> wrote:


>> umax1220u scripts are started in a sequence (i.e. not in parallel, when one 
>> is completed the next one starts).

When troubleshooting udev rules, use udevmonitor to actually see
what's happening in terms of udev events and their properties.

> ACTION!="add", GOTO="end"
> SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="010b", RUN+="..."
> LABEL="end"

Be careful with the labels you use. Always use a unique label name, or
you're asking for troubles. (been there, done that, accidentally
rendered a number of systems unbootable due to that ...)

> Welcome in the hell of udev, HAL and whatever else sophisticated
> stuff which is required to make users happy or so they say...

<aol />


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

More information about the sane-devel mailing list