Fixed issue #94, so lua-script 'mifare_autopwn' reacts correctly to card that are...
[legacy-proxmark3.git] / client / unbind-proxmark
blob986c0015d70935a2e95256351af8db310719f250
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