How to reset USB port remotely
#!/bin/bash usb=`dmesg | grep “New USB device found, idVendor=1058, idProduct=0820″|cut -f1 -d’:’| awk ‘{print $4}’ | tail -1` sudo sh -c “echo $usb > /sys/bus/usb/drivers/usb/unbind” sudo sh -c “echo $usb > /sys/bus/usb/drivers/usb/bind” Замінюйте параметри grep на те що вам потрібно. Continue reading How to reset USB port remotely