Follow-up Comment #1, bug #28628 (project grub):

Turn out a figure out a way that works good enough:


echo -e "nnTesting serial."
echo "If I see ESC from serial within 10 seconds"
echo "I will give over grub console to the serial port."

serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
terminal_input serial
terminal_output serial
#For some reason the "clear" command has been removed
echo -e "nnnnnnnnnnnnnnnnnnnnnnnnnnn"
echo -n "Press ESC within 10 second to take control of console  "
if sleep -i -v 10 ; then
  echo -e "nnnTimes up, going to console, sorry.nn"
  terminal_input console
  terminal_output console
else
  terminal_output console
  echo -e "nnConsole has gone over to the serial port."
  terminal_output serial
fi


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?28628>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to