]> git.zerfleddert.de Git - proxmark3-svn/blob - client/unbind-proxmark
Potential fix for 0-length usb packets seen on OSX
[proxmark3-svn] / client / unbind-proxmark
1 #!/bin/sh
2
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}"`
7
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
13 fi
14 done
15 fi
16 done
Impressum, Datenschutz