USB hotplug woes



Hey everyone,

I'll admit my knowledge in the hotplug department isn't spectacular.

Currently I have a machine setup to run a script when a specific USB flash
drive is inserted. I did this by defining the script and vendor ID &
product ID in the usb.handmap file (/etc/hotplug/usb.handmap). This works
great and as expected. The script tells the device to mount and do a few
things.

So this works as expected, great. But now I want to future proof it a little
by only looking at the Vendor ID and then just running the script. However
usb.handmap requires a vendor & product ID in order for it to load. I can't
get this seem to work. Sure I can add each vendor & product ID for each
device I have, however that isn't really future proofing.

Currently I have usb.handmap to read:
key.sh 0x0003 0x054c 0x02a5 0x0100 0x0000
0x00 0x00 0x00 0x00 0x00
0x00 0x00000000

And I have tried:

key.sh 0x0003 0x054c 0x0000 0x0000 0x0000
0x00 0x00 0x00 0x00 0x00
0x00 0x00000000

Anyone have any ideas?


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Visitorbook LE Multiple Vulnerabilities
    ... Vendor URL: http://www.freescripts.com/ ... which fails to escape various control characters in user ... If $mailuser is set to 1 then the script can be used as a ... DNS server to poison the script with a malicious reverse DNS response. ...
    (Bugtraq)
  • Re: laptops
    ... >> Perhaps can modify that script to add a call to your app shutdown ... > the vendor doesnt know, all they said is that it does the same thing as ... All i can see it does is sync file systems then off it goes ...
    (comp.unix.solaris)
  • RE: Question on using http rather than ftp
    ... Once that is done, an lwp-upload script can be written, to automatically ... connect thru https to a cgi script running on their https server. ... The question is, are you able to provide the vendor, with your own ...
    (perl.beginners)
  • Re: Csh permissions - script wont run
    ... > Our vendor has a program written in C that calls a csh script. ... > the c program and the script worked fine on our old server running AIX ...
    (comp.unix.aix)
  • Re: Problem with olegen.rb
    ... > client application. ... Have you got a script working with normal dynamic Win32OLE? ... is VT_HRESULT meant to be defined in the vendor library? ...
    (comp.lang.ruby)