возник такой вопрос: а есть возможность написать универсальный hotplug скрипт? для любого USB устройства?
ну чтобы вручную не задавать
MODULENAME="rt2570"
PRODUCTID="b05/1706/1"
ведь информация о подключенном устройстве все же есть:
Jan 1 02:00:06 kernel: usb.c: USB device 2 (vend/prod 0xb05/0x1715) is not claimed by any active driver.
тем более к примеру вот эта прошивка http://koppel.cz/cdmawifi/download/169/ выдает еще более подробную инфу:
Jan 1 02:00:06 kernel: Manufacturer: Ralink
Jan 1 02:00:06 kernel: Product: 802.11 bg WLAN
Jan 1 02:00:06 kernel: usb.c: USB device 4 (vend/prod 0xb05/0x1723) is not claimed by any active driver.
Jan 1 02:00:06 kernel: Length = 18
Jan 1 02:00:06 kernel: DescriptorType = 01
Jan 1 02:00:06 kernel: USB version = 2.00
Jan 1 02:00:06 kernel: Vendor:Product = 0b05:1723
Jan 1 02:00:06 kernel: MaxPacketSize0 = 64
Jan 1 02:00:06 kernel: NumConfigurations = 1
Jan 1 02:00:06 kernel: Device version = 0.01
Jan 1 02:00:06 kernel: Device Class:SubClass:Protocol = 00:00:00
Jan 1 02:00:06 kernel: Per-interface classes
Jan 1 02:00:06 kernel: Configuration:
Jan 1 02:00:06 kernel: bLength = 9
Jan 1 02:00:06 kernel: bDescriptorType = 02
Jan 1 02:00:06 kernel: wTotalLength = 0020
Jan 1 02:00:06 kernel: bNumInterfaces = 01
Jan 1 02:00:06 kernel: bConfigurationValue = 01
Jan 1 02:00:06 kernel: iConfiguration = 00
Jan 1 02:00:06 kernel: bmAttributes = 80
Jan 1 02:00:06 kernel: MaxPower = 300mA
Jan 1 02:00:06 kernel:
Jan 1 02:00:06 kernel: Interface: 0
Jan 1 02:00:06 kernel: Alternate Setting: 0
Jan 1 02:00:06 kernel: bLength = 9
Jan 1 02:00:06 kernel: bDescriptorType = 04
Jan 1 02:00:06 kernel: bInterfaceNumber = 00
Jan 1 02:00:06 kernel: bAlternateSetting = 00
Jan 1 02:00:06 kernel: bNumEndpoints = 02
Jan 1 02:00:06 kernel: bInterface Class:SubClass:Protocol = ff:ff:ff
Jan 1 02:00:06 kernel: iInterface = 00
Jan 1 02:00:06 kernel: Endpoint:
Jan 1 02:00:06 kernel: bLength = 7
Jan 1 02:00:06 kernel: bDescriptorType = 05
Jan 1 02:00:06 kernel: bEndpointAddress = 81 (in)
Jan 1 02:00:06 kernel: bmAttributes = 02 (Bulk)
Jan 1 02:00:06 kernel: wMaxPacketSize = 0200
Jan 1 02:00:06 kernel: bInterval = 00
Jan 1 02:00:06 kernel: Endpoint:
Jan 1 02:00:06 kernel: bLength = 7
Jan 1 02:00:06 kernel: bDescriptorType = 05
Jan 1 02:00:06 kernel: bEndpointAddress = 01 (out)
Jan 1 02:00:06 kernel: bmAttributes = 02 (Bulk)
Jan 1 02:00:06 kernel: wMaxPacketSize = 0200
Jan 1 02:00:06 kernel: bInterval = 00