Created
December 1, 2021 21:31
-
-
Save andrewodri/37b9116384ff8fdb2e04ffeaa0d775f2 to your computer and use it in GitHub Desktop.
OpenWRT sledgehammer USB rebinding
This file contains 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
#!/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