Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
Untitled
SUBMITTED BY:
itsDaveLad
DATE:
March 10, 2016, 3:23 p.m.
FORMAT:
Text only
SIZE:
348 Bytes
Raw
Download
Tweet
HITS:
370
Go to comments
Report
#!/bin/bash
if [[ $EUID != 0 ]] ; then
echo This must be run as root!
exit 1
fi
xhci="/sys/bus/pci/drivers/xhci_hcd"
if ! cd $xhci ; then
echo Weird error. Failed to change directory to $xhci
exit 1
fi
echo Unbinding devices from $xhci...
for i in ????:??:??.? ; do
echo -n "$i" > unbind
echo -n "$i" > bind
done
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus