From: "Kay Sievers" Date: Tue, 10 Jul 2007 09:48:00 +0000 Subject: Re: MODALIAS to stay Message-Id: <3ae72650707100248n16bfb04fv4aa16b699a73bd9d@mail.gmail.com> List-Id: References: <200707101008.00349.aj@dungeon.inka.de> In-Reply-To: <200707101008.00349.aj@dungeon.inka.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On 7/10/07, Andreas Jellinghaus wrote: > I have udev rules lines like this: > SYSFS{idVendor}="0973", SYSFS{idProduct}="0001", RUN+="/lib/udev/openct_usb" > and > SYSFS{bInterfaceClass}="0b", SYSFS{bInterfaceSubClass}="00", > SYSFS{bInterfaceProtocol}="00" RUN+="/lib/udev/openct_usb" > > Now I see the kernel has a MODALIAS line that contains all the information I > need. "usb:v0973p0001*" or "usb:*ic0Bisc00*" would match the same way as > using sysfs. > > So I wonder: can I match MODALIAS like this somehow in udev rules? ENV{MODALIAS}="usb:v0973p0001*|usb:*ic0Bisc00*" should match. > and is there any reason not to use MODALIAS? No, it should be fine. > as far as I know the kernel creates the MODALIAS line in > drivers/usb/core/driver.c so I guess it is always part of an event and thus > shouldn't have any timing problem, right? It should always be in the environment, yes. Kay ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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