From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Borzenkov Date: Tue, 14 Nov 2006 18:13:29 +0000 Subject: Re: problem with a specific ACTION=="remove" udev rule Message-Id: <200611142113.32980.arvidjaar@mail.ru> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 14 November 2006 19:00, Ludovic Rousseau wrote: > On 14/11/06, Kay Sievers wrote: > > On 11/14/06, Ludovic Rousseau wrote: > > > Hello, > > > > > > I use udev to run a program when a USB device is connected or removed. > > > The USB device is a CCID smart card reader [1] and the program is a > > > smart card resource manager. I use udev to dynamically add and remove > > > smart card reader to/from the smart card resource manager. > > > > > > My rules file is: > > > ACTION="remove", RUN+="/usr/sbin/pcscd --hotplug" > > > > ... > > > > > Why can't I specify the SYSFS{bInterfaceClass} = "0b" in a remove > > > rule? > > > > Because, there is no sysfs-attribute left to look at, at the time you > > get a "remove" event. > > So I guess I have no solution other than to be called for every USB > device removed? > ACTION="add" SYSFS{bInterfaceClass}="0b" ENV{NEED_PCSCD_ON_REMOVE}="true" ACTION="remove" ENV{NEED_PCSCD_ON_REMOVE}="true" RUN+="/usr/sbin/pcscd --hotplug" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFWgdMR6LMutpd94wRAjlYAKCWh5Z3ZbLc075j2pi7UvMstn3y+wCghyy1 Ithsh7/GzKDSNH9ZLKNCFQc=UpcH -----END PGP SIGNATURE----- ------------------------------------------------------------------------- SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now. Check out Slashdot's new job board. Browse through tons of technical jobs posted by companies looking to hire people just like you. http://jobs.slashdot.org/ _______________________________________________ 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