[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Grub Change HELP

From: Robert Millan
Subject: Re: Grub Change HELP
Date: Wed, 30 Jan 2008 14:46:31 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Tue, Jan 29, 2008 at 10:33:18PM -0200, address@hidden wrote:
> Robert thank you, You are great person, because worry with problems of the
> others people. The best demonstration of the spirit GNU is this.
> I will try put this code, in source grub,
> > if (*((grub_uint8_t *) 0x000ffa17))
> >   grub_env_set ("default", "1");
> > else
> >   grub_env_set ("default", "0");
> but the problem is where??? I thought put in stage2.c. What do you think?

That was for GRUB 2, which is the only version in development right now.  For
GRUB Legacy it'd be a bit more complicated I think.

In init.c / grub_machine_init; you want to do that after heap has been
initialized, so that grub_env_set() will have an effect.

Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]