Skip to content

Instantly share code, notes, and snippets.

@andrewodri
Created December 1, 2021 21:31
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 andrewodri/37b9116384ff8fdb2e04ffeaa0d775f2 to your computer and use it in GitHub Desktop.
Save andrewodri/37b9116384ff8fdb2e04ffeaa0d775f2 to your computer and use it in GitHub Desktop.
OpenWRT sledgehammer USB rebinding
#!/bin/sh
for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do
[ -e "$i" ] || continue
echo "${i##*/}" > "${i%/*}/unbind"
echo "${i##*/}" > "${i%/*}/bind"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment