From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Just Keijser Date: Tue, 27 Mar 2007 20:36:44 +0000 Subject: Re: Fedora Core 5, Aladdin eToken PRO32 and udev hotplug Message-Id: <4609805C.2060003@nikhef.nl> List-Id: References: <46092CC9.9000106@nikhef.nl> In-Reply-To: <46092CC9.9000106@nikhef.nl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi Greg, thx for the answer ; I realize my posting was not very clear: without=20 the ACTION=3D"add" it also does not fire on this rule; Google told me=20 that others have seen this as well and that it's caused by the fact that=20 when a device is removed the SYSFS entries are gone before the rule is=20 fired... plz correct me if I am wrong and plz tell me how to write a=20 ACTINO=3D"remove" rule that will fire only for this particular USB device... cheers, JJK Greg KH wrote: > On Tue, Mar 27, 2007 at 04:40:09PM +0200, Jan Just Keijser wrote: > =20 >> With FC5 and udev, things get hairier: first , I added a rule in >> /etc/udev/rules.d/20-etoken.rules >> --- >> # add rule >> ACTION=3D"add", BUS=3D"usb", SUBSYSTEM=3D"usb", \ >> SYSFS{idVendor}=3D"0529", SYSFS{idProduct}=3D"0600", \ >> RUN=3D"/etc/hotplug.d/usb/etoken.hotplug" >> --- >> >> to make sure the Perl thingie is called when I plug in a token. I've=20 >> added debug statements to the etoken.hotplug script and can see that it = >> is actually being called when I plug in the token (not when I remove it,= =20 >> however). >> =20 > > That's because you are matching on the ACTION=3D"add" rule above. I > suggest creating a new rule for ACTION=3D"remove" or just take that check > out :) > > thanks, > > greg k-h > =20 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=DEVD= EV _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel