dobry den,
potrebuji v bash skriptu ziskat ID mysi pripojene pres USB..
lsusb
Bus 002 Device 012: ID 2109:0812
Bus 002 Device 013: ID 045e:077b Microsoft Corp. <<< tady je ta mys
Bus 002 Device 005: ID 046d:c31d Logitech, Inc. Media Keyboard K200
....
lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
|__ Port 4: Dev 3, If 0, Class=Hub, Driver=hub/7p, 480M
|__ Port 1: Dev 4, If 0, Class=Hub, Driver=hub/3p, 480M
|__ Port 1: Dev 8, If 0, Class=Printer, Driver=usblp, 12M
|__ Port 2: Dev 9, If 0, Class=Vendor Specific Class, Driver=pl2303, 12M
|__ Port 3: Dev 10, If 0, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 10, If 1, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 10, If 2, Class=Audio, Driver=snd-usb-audio, 12M
|__ Port 3: Dev 10, If 3, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 2: Dev 5, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 5, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 3: Dev 13, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M <<< tady je ta mys
|__ Port 4: Dev 12, If 0, Class=Hub, Driver=hub/4p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
...
vysledkem by melo byt '2-1.4.3'
muzete mi prosim poradit jak se k tomu jednoduse dostat?
dekuji. P.