Re: How to associate lsusb bus/device with /dev entry?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Peter Stuge wrote:
> > Hi all.  Could someone tell me how to associate a USB Bus:Device
> > info with a /dev/entry?
> 
> This is subsystem-specific. Feel free to take inspiration from my
> script for usb-serial at http://stuge.se/find430.sh
> 
> You'll have to change the code inside:
>   for usbiface in "${port}/${port}:"*; do
> 
> (And of course ids.)

I hacked something up, see http://stuge.se/findstor.sh

Note that this script does not do any checking beyond finding the
usb-storage driver for a USB interface. I think this is too
simplistic to be a proper generic solution, but it's something you
could start from.


//Peter
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux