]> rtime.felk.cvut.cz Git - novaboot.git/commitdiff
Prioritize 'exiton' over 'expect_raw'
authorMartin Vajnar <martin.vajnar@avast.com>
Sun, 17 Jan 2021 22:58:53 +0000 (23:58 +0100)
committerMartin Vajnar <martin.vajnar@avast.com>
Sun, 17 Jan 2021 22:58:53 +0000 (23:58 +0100)
novaboot

index 4830f51f76e84e424a452424e05293fd9cbb773c..b827f166656d573ce3426a441e5dadd77245aa75 100755 (executable)
--- a/novaboot
+++ b/novaboot
@@ -1299,7 +1299,7 @@ if ($interaction && defined $exp) {
     print STDERR "novaboot: Serial line interaction (press $interrupt to interrupt)...\n";
     $exp->log_stdout(1);
     if (@exiton) {
-       $exp->expect($exiton_timeout, @expect_raw, @exiton) || die("exiton: " . ($! || "timeout"));
+       $exp->expect($exiton_timeout, @exiton, @expect_raw) || die("exiton: " . ($! || "timeout"));
     } else {
        my @inputs = ($exp);
        my $infile = new IO::File;