Created
August 6, 2019 19:12
-
-
Save sashomasho/2346669fb5599637607210abfeffc52d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/pkexec /bin/sh | |
echo "You probably want to use rescanpci not this." | |
for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do | |
echo "${i##*/}" > "${i%/*}/unbind" | |
sleep 3 | |
echo "${i##*/}" > "${i%/*}/bind" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment