From: Andreas Jellinghaus Date: Tue, 10 Jul 2007 08:08:00 +0000 Subject: MODALIAS to stay Message-Id: <200707101008.00349.aj@dungeon.inka.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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? and is there any reason not to use MODALIAS? 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? Thanks for your help. Regards, Andreas ------------------------------------------------------------------------- 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