Hi I wish to have grub wait until the user has taken a specific action and presses down a key, such as control, shift or alt keys to inform the action has been taken. It's possible to test this with the keystatus --<key> function.
With the following lines
echo "Press Ctrl key down to go on." ;
until keystatus --ctrl ; do true ; done ;
echo "Ctrl key pressed down." ;
grub seems to enter and endless loop. However, if the Ctrl key is
pressed before the "Press Ctrl key down to go on." message is displayed,
grub immediately exits the loop.
With
until keystatus --alt ; do
echo "Press Alt key down to go on" ;
sleep -v 3 ;
done ;
echo "Alt key pressed down." ;
grubs exits the loop, however after a delay which seems to increase with
the number of "Press Alt down to go on" displayed before the alt key is
pressed down.
How can this behaviour be explained and what should I do to have grub
react at the pressing of the key ?
Arbiel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Help-grub mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-grub
