run dump as root to side-step permission problems
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 19 Jan 2014 14:12:42 +0000 (09:12 -0500)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 19 Jan 2014 14:12:42 +0000 (09:12 -0500)
ccid-dump.sh

index 8df6d01..8e928e5 100755 (executable)
@@ -1,4 +1,4 @@
 #!/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
-./dump/ccid 2>&1 | tee dump/`hostname`.ccid
+sudo ./dump/ccid 2>&1 | tee dump/`hostname`.ccid