X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=checkcard.pl;h=082b63898824383772587a259684ce8bdc9a4c76;hb=4b416859c02dc726158fb9ca37c2338ad908259d;hp=fb576be920eb8867663f076b994db06eedf3bba1;hpb=05a30813f4a86f2566f9ec49f84942b27fe31fdd;p=svn42.git diff --git a/checkcard.pl b/checkcard.pl index fb576be..082b638 100755 --- a/checkcard.pl +++ b/checkcard.pl @@ -47,9 +47,14 @@ while (sleep 1) read_keys() unless ($keys_last_read == -M ($keysfile)); - while (<$fh>) + READLOOP: while (<$fh>) { - next unless /UID/; + unless (/UID/) + { + close($fh); + system("/flash/tuer/reset_openpcd.sh"); + last READLOOP; + } my ($id) = /UID=(\S+)\s+/; if ($good{$id}) {