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

2008-04-29 Thread Tzafrir Cohen
On Wed, Apr 23, 2008 at 10:53:48PM +0200, Rainer Dorsch wrote: > Am Mittwoch, 23. April 2008 schrieb Julien BLACHE: > > Johannes Meixner <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > >> umax1220u scripts are started in a sequence (i.e. not in parallel, when > > >> one is completed the next one sta

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

2008-04-28 Thread Julien BLACHE
Rainer Dorsch <[EMAIL PROTECTED]> wrote: Hi, >> Chances are the coldplugging happens from the initrd and your script >> isn't available in the initrd. So check that. > > How would I check if coldplugging happens from the initrd? Well anyway it should be redone once the root FS is mounted and th

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

2008-04-28 Thread Rainer Dorsch
Am Samstag, 26. April 2008 schrieb Julien BLACHE: > Rainer Dorsch <[EMAIL PROTECTED]> wrote: > > Hi, > > > The script works now reasonably robust (for now) when I plug the USB > > scanner. My problem is though, that the script does not get called when I > > boot the system and the scanner is plugge

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

2008-04-26 Thread Julien BLACHE
Rainer Dorsch <[EMAIL PROTECTED]> wrote: Hi, > The script works now reasonably robust (for now) when I plug the USB scanner. > My problem is though, that the script does not get called when I boot the > system and the scanner is plugged already during bootup. Why is this? Chances are the coldp

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

2008-04-26 Thread Rainer Dorsch
Am Donnerstag, 24. April 2008 schrieb Julien BLACHE: > Johannes Meixner <[EMAIL PROTECTED]> wrote: > > Hi, > > >> > 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 unbo

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

2008-04-25 Thread Johannes Meixner
Hello, On Apr 24 22:45 Julien BLACHE wrote (shortened): > udev is an incredible piece of crap, but the good news is that this > piece of crap is mostly stable those days. Which is a big step forward > already. > > (and I'll refrain from saying anything at all about the genius who > invented udev

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

2008-04-24 Thread Julien BLACHE
Johannes Meixner <[EMAIL PROTECTED]> wrote: Hi, >> > 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 ...) > > Many thanks for this enlightening inf

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

2008-04-24 Thread Rainer Dorsch
Johannes, Am Donnerstag, 24. April 2008 schrieb Johannes Meixner: > Hello, > > On Apr 23 22:53 Rainer Dorsch wrote: > > Am Mittwoch, 23. April 2008 schrieb Julien BLACHE: > > > Johannes Meixner <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > >> umax1220u scripts are started in a sequence (i

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

2008-04-24 Thread Johannes Meixner
Hello, On Apr 23 22:53 Rainer Dorsch wrote: > Am Mittwoch, 23. April 2008 schrieb Julien BLACHE: > > Johannes Meixner <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > >> umax1220u scripts are started in a sequence (i.e. not in parallel, when > > >> one is completed the next one starts). > > > > Whe

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

2008-04-23 Thread Rainer Dorsch
Am Mittwoch, 23. April 2008 schrieb Julien BLACHE: > Johannes Meixner <[EMAIL PROTECTED]> wrote: > > Hi, > > >> 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 >

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

2008-04-23 Thread Julien BLACHE
Johannes Meixner <[EMAIL PROTECTED]> wrote: Hi, >> 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. >

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

2008-04-23 Thread Johannes Meixner
Hello, On Apr 22 22:18 Rainer Dorsch wrote (shortened): > I want to call a script after I plugged my USB scanner. I use udev for this > by > adding a rule ... > SYSFS{idVendor}=="1606", SYSFS{idProduct}=="0010", MODE="0664", > GROUP="scanner", NAME="umax%n", RUN+="/usr/local/bin/umax1220u star

Calling a script after USB scanner is plugged

2008-04-22 Thread Rainer Dorsch
Hello, I want to call a script after I plugged my USB scanner. I use udev for this by adding a rule [EMAIL PROTECTED]:/etc/udev/rules.d$ cat z_local.rules SYSFS{idVendor}=="1606", SYSFS{idProduct}=="0010", MODE="0664", GROUP="scanner", NAME="umax%n", RUN+="/usr/local/bin/umax1220u start", [EMA