added more keys (@equipter)
[RRG-proxmark3.git] / tools / deprecated-hid-flasher / unbind-proxmark
blob325607cb6e6283947d9e92ad5d3f3d1cb6d150a0
1 #!/bin/sh
3 for i in /sys/bus/usb/devices/*; do
4 if grep "9ac4" "${i}/idVendor" >/dev/null 2>&1; then
5 echo "Found Proxmark..."
6 dev=`basename "${i}"`
8 for j in /sys/bus/usb/drivers/usbhid/*; do
9 if basename "${j}"|grep "^${dev}" >/dev/null; then
10 bound="`basename "${j}"`"
11 echo "Unbinding ${bound}..."
12 echo -n "${bound}" >/sys/bus/usb/drivers/usbhid/unbind
14 done
16 done