Skip to content

Instantly share code, notes, and snippets.

@sashomasho
Created August 6, 2019 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sashomasho/2346669fb5599637607210abfeffc52d to your computer and use it in GitHub Desktop.
Save sashomasho/2346669fb5599637607210abfeffc52d to your computer and use it in GitHub Desktop.
#!/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