Untitled


SUBMITTED BY: itsDaveLad

DATE: March 10, 2016, 3:23 p.m.

FORMAT: Text only

SIZE: 348 Bytes

HITS: 370

  1. #!/bin/bash
  2. if [[ $EUID != 0 ]] ; then
  3. echo This must be run as root!
  4. exit 1
  5. fi
  6. xhci="/sys/bus/pci/drivers/xhci_hcd"
  7. if ! cd $xhci ; then
  8. echo Weird error. Failed to change directory to $xhci
  9. exit 1
  10. fi
  11. echo Unbinding devices from $xhci...
  12. for i in ????:??:??.? ; do
  13. echo -n "$i" > unbind
  14. echo -n "$i" > bind
  15. done

comments powered by Disqus