projects
/
librfid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e9fb71
)
try to reset reader using authorized
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 18 Jan 2014 22:38:38 +0000
(23:38 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 18 Jan 2014 22:38:53 +0000
(23:38 +0100)
reset-reader.sh
[new file with mode: 0755]
patch
|
blob
diff --git a/reset-reader.sh
b/reset-reader.sh
new file mode 100755
(executable)
index 0000000..
ed16ccd
--- /dev/null
+++ b/
reset-reader.sh
@@ -0,0
+1,8
@@
+#!/bin/sh -xe
+
+dev=`lsusb | grep 076b:5.21 | awk '{ print $2 "-" $4 }' | sed -e 's/0//g' -e 's/://'`
+authorized=/sys/bus/usb/devices/$dev/authorized
+echo 0 > $authorized
+dmesg
+echo 1 > $authorized
+dmesg