All of lore.kernel.org
 help / color / mirror / Atom feed
* select menu item depending on frontkey
@ 2012-04-23 12:54 Joachim Mammele
  2012-04-23 12:56 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 3+ messages in thread
From: Joachim Mammele @ 2012-04-23 12:54 UTC (permalink / raw)
  To: The development of GNU GRUB

Hi,
accrding to Vladimirs hints I adapted my grub-configuration.

What I changed in /boot/grub/grub.cfg is the following: (I'm aware that 
editing grub.cfg isn't the best option as it gets rewritten on executing 
the config-scripts)
(the whole file can be found here http://pastebin.com/K57RHjwn)

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
   load_env
fi

#unsigned char bits9, keybits;

set keybits = "32";
grub_outb(keybits, 0x20A);
grub_outw(-16832, 0x20C);
set bits9 = grub_inb(0x209);

echo "bits9= "
echo bits9

if (bits9 == 64)
     set default="1"
if (bits9 == 32)
     set default="2"
if (bits9 == 16)
     set default="3"
else
     set default="0"

On starting grub I see some error log-messages but before I can read 
them the grub-menu appears.
I'm using ubuntu 10.04 (Kernel 2.6.32-40)

Any help would be appreciated.

Greetings
Joachim


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-23 13:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-23 12:54 select menu item depending on frontkey Joachim Mammele
2012-04-23 12:56 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-23 13:28   ` Joachim Mammele

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.