<div dir="ltr">it may be handy to some people, so here is my usb restart script:<br><br><br>===== cat /root/scripts/usb_restart ====<br>#! /bin/bash<br><br>echo "please do the following:"<br><br>for i in $(lspci|grep "USB controller"|awk '{print $1}') ; do echo echo "0000:"$i "|" sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind ; echo echo "0000:"$i "|" sudo tee /sys/bus/pci/drivers/ehci_hcd/bind; done<br>
<br>====================================<br><br><br>this script does not actually do the restart, just tells you what to do, on my server it is:<br><br>please do the following:<br>echo 0000:00:1a.0 | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind<br>
echo 0000:00:1a.0 | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind<br>echo 0000:00:1d.0 | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind<br>echo 0000:00:1d.0 | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind<br>echo 0000:01:00.4 | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind<br>
echo 0000:01:00.4 | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind<br><br><br><br>if you want it to really do it, not just tell you what (not tested, may be a typo):<br>for i in $(lspci|grep "USB controller"|awk '{print $1}') ; do echo "0000:"$i | sudo tee /sys/bus/pci/drivers/ehci_hcd/unbind ; echo "0000:"$i | sudo tee /sys/bus/pci/drivers/ehci_hcd/bind; done<br>
<br><br></div>