On Thu, 1 Jul 2010 17:17:15 +0200, SpaceCake wrote:

> I've never created udev rule so the usal way does not tell me too
> much :) I've checked the net for examples but it looks like very
> complicated for me :)

http://www.reactivated.net/writing_udev_rules.html

> My usb stick looks like this
> 
> Bus 007 Device 015: ID 058f:6387 Alcor Micro Corp. Transcend JetFlash
> Flash Drive
> 
> Can you share with me some example how can I use this info on udev
> rules?

SUBSYSTEMS=="usb", KERNEL=="sd[a-z]1", ATTRS{idVendor}=="058f", 
ATTRS{idProduct}=="6387", RUN="/path/to/your/script"

That's all on one line.

-- 
Neil Bothwick

Like an atheist in a grave: all dressed up and no place to go.

Attachment: signature.asc
Description: PGP signature

Reply via email to