X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=checkcard.pl;h=18109d4a85af4b3af960597d32d9f63aae53dbd0;hb=f30712da87abd222feadede56453c384e37d488f;hp=ade7c619452667692d653161508514f650dd3043;hpb=75b15a8d68c03f32f2eafad2f80ca5799a4b4fcd;p=svn42.git diff --git a/checkcard.pl b/checkcard.pl index ade7c61..18109d4 100755 --- a/checkcard.pl +++ b/checkcard.pl @@ -12,10 +12,11 @@ my $socketaddr = sockaddr_un($socketfile); my $keys; my %good; -open $keys,'/flash/realraum/keys'; +open $keys,'/flash/keys'; while (<$keys>) { - if ($_ =~ /([0-9A-Fa-f]{8})\s(\S+)/) + chomp; + if ($_ =~ /^([0-9A-Fa-f]{8})\s+(.+)$/) { $good{$1}=$2; } @@ -31,7 +32,7 @@ sub send_to_fifo while (sleep 1) { - open $fh,'/flash/realraum/mifare-read 0 2>&1 |'; + open $fh,'/flash/tuer_python/mifare-read 0 2>&1 |'; while (<$fh>) { next unless /UID/;