On Tue, Jan 29, 2008 at 10:33:18PM -0200, [EMAIL PROTECTED] 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 /.) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel