projects
/
svn42.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch.cgi nofloat=1 includes ymhremote
[svn42.git]
/
checkcard.pl
diff --git
a/checkcard.pl
b/checkcard.pl
index
082b638
..
4e3816f
100755
(executable)
--- a/
checkcard.pl
+++ b/
checkcard.pl
@@
-41,18
+41,20
@@
sub send_to_fifo
read_keys();
read_keys();
-while (sleep 1)
+while (sleep 2)
{
{
+ send_to_fifo("log starting mifare-read");
open $fh,'/flash/tuer/mifare-read 0 2>&1 |';
read_keys() unless ($keys_last_read == -M ($keysfile));
READLOOP: while (<$fh>)
open $fh,'/flash/tuer/mifare-read 0 2>&1 |';
read_keys() unless ($keys_last_read == -M ($keysfile));
READLOOP: while (<$fh>)
- {
+ {
unless (/UID/)
{
close($fh);
unless (/UID/)
{
close($fh);
- system("/flash/tuer/reset_openpcd.sh");
+ system("/usr/bin/killall -9 mifare-read");
+ send_to_fifo("log restarting mifare-read after invalid output");
last READLOOP;
}
my ($id) = /UID=(\S+)\s+/;
last READLOOP;
}
my ($id) = /UID=(\S+)\s+/;