On 1/15/21 5:53 AM, Bob Marcan wrote:

Okay, here we go:

$ wget https://github.com/gregkh/usbutils/raw/master/usbreset.c
--2021-01-15 11:33:30--
https://github.com/gregkh/usbutils/raw/master/usbreset.c
Resolving proxy (proxy)... 192.168.1.10
Connecting to proxy (proxy)|192.168.1.10|:8080... connected.
Proxy request sent, awaiting response... 302 Found
Location:
https://raw.githubusercontent.com/gregkh/usbutils/master/usbreset.c
[following]
--2021-01-15 11:33:30--
https://raw.githubusercontent.com/gregkh/usbutils/master/usbreset.c
Connecting to proxy (proxy)|192.168.1.10|:8080... connected.
Proxy request sent, awaiting response... 200 OK
Length: 4084 (4.0K) [text/plain]
Saving to: ‘usbreset.c’

100%[======================================>] 4,084       --.-K/s   in 0s

2021-01-15 11:33:30 (51.0 MB/s) - ‘usbreset.c’ saved [4084/4084]

$ gcc -o usbreset usbreset.c
$ ./usbreset
Usage:
   usbreset PPPP:VVVV - reset by product and vendor id
   usbreset BBB/DDD   - reset by bus and device number
   usbreset "Product" - reset by product name

Devices:
   Number 001/002  ID 04d9:1400
   Number 006/002  ID 090c:1000  Flash Drive FIT

Fantastic!  Thanks


Cheers
Frank


--

<listfra...@gmail.com>
_______________________________________________
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos

Reply via email to