From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 27 Mar 2007 18:46:12 +0000 Subject: Re: Fedora Core 5, Aladdin eToken PRO32 and udev hotplug Message-Id: <20070327184612.GA1815@kroah.com> 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 On Tue, Mar 27, 2007 at 04:40:09PM +0200, Jan Just Keijser wrote: > 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" > --- >=20 > 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=20 > is actually being called when I plug in the token (not when I remove it, = > however). 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 ------------------------------------------------------------------------- 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