Skip to content

Instantly share code, notes, and snippets.

@cybic
Created August 16, 2018 07:07
Show Gist options
  • Save cybic/456d7cdddb8cf2e7c5e1b5ebcd2ca304 to your computer and use it in GitHub Desktop.
Save cybic/456d7cdddb8cf2e7c5e1b5ebcd2ca304 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Reset xHCI
for xhci in /sys/bus/pci/drivers/?hci_hcd ; do
cd $xhci
echo Resetting devices from $xhci...
for i in ????:??:??.? ; do
echo -n "$i" > unbind
echo -n "$i" > bind
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment