diff --git a/aii-ks/src/main/perl/ks.pm b/aii-ks/src/main/perl/ks.pm index a855d631..40743527 100755 --- a/aii-ks/src/main/perl/ks.pm +++ b/aii-ks/src/main/perl/ks.pm @@ -692,8 +692,10 @@ sub log_action { } if ($consolelogging) { + push(@logactions, "console='/dev/console'"); + push(@logactions, "[ -e /dev/pts/0 ] && console='/dev/pts/0'"); push(@logactions, '# Make sure messages show up on the serial console', - "tail -f $logfile > /dev/console &"); + "tail -f $logfile > \$console &"); } push(@logactions,"drainsleep=$drainsleep"); # add trailing newline