>>>>> "TN" == Tuomas Noraef <[EMAIL PROTECTED]> writes:

    TN> First, I have attached two files to this mail :
    TN> "scanbuttond-init" and "scanbuttond-default", which are the ones
    TN> I crafted.

Thanks, I'll add them to the package.

    TN> As for udev/HAL and the rest... sure, it may be more
    TN> elegant. But a lot much harder to manage.

Indeed...

    TN> "udev" is very low level, and if I know how to make it run some
    TN> command with a "+RUN=" stanza on a device detection, I surely do
    TN> not know how to do it when the device is unplugged

Adding

  ENV{REMOVE_CMD}="..."

to your _add_ action should do the trick.

    TN> (udev still is some kind of voodoo to me).

Well, it's not voodoo, it's just poorly documented software (but still
excellent in comparison to hal). :-(

    TN> to tell the truth, I run "scanbuttond" in an OpenVZ container
    TN> (newcomer in Lenny), where udev will not even install 

I use vserver and although udev installs on a guest, it apparently
doesn't run there.  But I could probably make scanbuttond run inside a
guest by calling a guest command from a host udev rule.

    TN> In the meantime, an initscript may be a poor-man-solution, but
    TN> is really easy to set up ; and as long as "scanbuttond" is
    TN> invoked with the "--quiet" switch, it should not matter wether
    TN> the scanner is plugged or not.

This sounds reasonably, so let's try this way until someone
complains. :-)

Regards,

Milan Zamazal



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to