]> git.zerfleddert.de Git - proxmark3-svn/blame - client/unbind-proxmark
chg: the windows exe annoys the linux compiler
[proxmark3-svn] / client / unbind-proxmark
CommitLineData
6658905f 1#!/bin/sh
2
3for 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
16done
Impressum, Datenschutz