projects
/
librfid
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
25edebd
)
generate unique reader.host.ccid files
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 19 Jan 2014 15:00:19 +0000
(10:00 -0500)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 19 Jan 2014 15:00:19 +0000
(10:00 -0500)
ccid-dump.sh
patch
|
blob
|
history
diff --git
a/ccid-dump.sh
b/ccid-dump.sh
index
8a81e25
..
3a1b55f
100755
(executable)
--- a/
ccid-dump.sh
+++ b/
ccid-dump.sh
@@
-2,4
+2,6
@@
test -d dump || mkdir dump
#test -f dump/ccid ||
gcc -DTEST -Wall -Iinclude -lusb -g src/ccid/ccid-driver.c -o utils/ccid
-sudo ./utils/ccid --debug --no-poll 2>&1 | tee dump/`hostname`.ccid
+./utils/ccid --debug --no-poll 2>&1 | tee dump/ccid
+id=`head dump/debian7.ccid | cut -d: -f4 | head -1`
+mv dump/ccid dump/$id.`hostname`.ccid