From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pantelis Koukousoulas Date: Sat, 23 Apr 2011 17:38:52 +0000 Subject: Add atm device description rules Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org USB ATM devices could use the same treatment that USB ethernet devices enjoy, so that the atm device inherits the info from its parent USB device. Would this be useful to include in mainline udev? cat > 75-atm-description.rules << EOF # do not edit this file, it will be overwritten on update ACTION="remove", GOTO="atm_end" SUBSYSTEM!="atm", GOTO="atm_end" SUBSYSTEMS="usb", ENV{ID_MODEL}="", IMPORT{program}="usb_id --export %p" SUBSYSTEMS="usb", ENV{ID_MODEL_FROM_DATABASE}="", IMPORT{program}="usb-db %p" SUBSYSTEMS="usb", ATTRS{idVendor}!="", ATTRS{idProduct}!="", ENV{ID_VENDOR_ID}="$attr{idVendor}", ENV{ID_MODEL_ID}="$attr{idProduct}" SUBSYSTEMS="usb", GOTO="atm_end" SUBSYSTEMS="pci", ENV{ID_MODEL_FROM_DATABASE}="", IMPORT{program}="pci-db %p" SUBSYSTEMS="pci", ENV{ID_BUS}="pci", ENV{ID_VENDOR_ID}="$attr{vendor}", ENV{ID_MODEL_ID}="$attr{device}" LABEL="atm_end" EOF Thanks, Pantelis