Running a Script on Device Connect using Murasaki
I currently have a USB scanner that uses a user-space driver, however I want to be able to scan as a normal user and it would be nice if the OS (in my case TurboLinux) make the scanner world writable when it connects.
With hotplug this is easy, but with murasaki (which is TurboLinux's hotplug agent) it doesn't appear so simple. The only success I've had is adding my vendor/product ids to murasaki.usbmap and creating a reference to the script I want to run in murasaki.precall. However, this only works when the OS detects the device at startup. How can I make this script run anytime the device connects?
I'm using TurboLinux 10 Desktop, on an IBM Intellistation E Pro with a P4 2.2 GHz processor, 256 MB of RAM, an NEC PCI-to-USB 2.0 host adaptor. My murasaki verision is 0.6.4 and I'm running kernel 2.6.0.
|