support lower and upper case hex chars
[librfid] / ccid-dump.sh
index 8e928e5..3a1b55f 100755 (executable)
@@ -1,4 +1,7 @@
 #!/bin/sh -xe
 test -d dump || mkdir dump
-test -f dump/ccid || gcc -DTEST -Wall -Iinclude -lusb -g src/ccid/ccid-driver.c -o dump/ccid
-sudo ./dump/ccid 2>&1 | tee dump/`hostname`.ccid
+#test -f dump/ccid || 
+gcc -DTEST -Wall -Iinclude -lusb -g src/ccid/ccid-driver.c -o utils/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