On Wed, 2006-03-08 at 20:58 -0300, Mariano López Reta wrote: > On Wed, 2006-03-08 at 09:27 -0300, Mariano López Reta wrote: > > Hi, all. > > > > I want to add a script execution when I connect my PDA, and wrote a > > script that should be invoked by hotplug, placing it > > on /etc/hotplug/usb. I also added the .usermap file to /etc/hotplug/usb > > directory. It contains the vendor and product IDs as reported > > on /proc/bus/usb/drivers. > > > > But it does not run. Is something I'm missing here? > > > > Thanks in advance, > > > > Mariano Lopez Reta > > > > > > Hello, all > > After some investigation, I concluded that I should be using udev > instead of hotplug. So, I edited /etc/udev/rules.d/50-udev.rules, and > added the following line: > > > ACTION=="add", SUBSYSTEM=="usb", SYSFS{product}=="45e/ce/0", RUN+="/etc/udev/scripts/ipaq.sh" > > Still no cigar, tho. I checked what happens with udevmonitor, and the values (ACTION, SUBSYSTEM and PRODUCT) are correct. > > Any ideas will be appreciated. ---- #1 - any rules you create should NOT go into 50-udev.rules since, a) that file gets replaced any time there is a udev package update and b) rules are parsed alphabetically in the folder and the first rule wins so 10-udev.rules would solve both those issues. #2 - get the specific information about your device from either udevinfo or usbview when the device is plugged in. See this link for really good ideas... http://www.reactivated.net/writing_udev_rules.html Craig