Hi, comunity of GNU Linux, Robert please see my idea about my problem: This file is builtins.c line 3974 more less. I add more commands. I set variable localiza to adress 0x000ffa17 , I am not sure but I think the function grub_sprintf, read the menu.lst if it is true I made the condicional expression to verify the variable localiza, depend of the value if read menu.lst or menu2.lst this form I can load the linux gnu system or other system. Depended of the value of the variable localiza. It is correct???
localiza=0x000ffa17; grub_printf ("Endereço de 0x000ffa17\"contem= %d\"... ", *localiza); if ( *localiza == 0 ) grub_sprintf (config_filename, "%s%s", prefix, "/menu.lst"); else grub_sprintf (config_filename, "%s%s", prefix, "/menuw.lst"); Regards Gilberto FeniX Linux > On Tue, Jan 29, 2008 at 04:46:04PM -0200, [EMAIL PROTECTED] > wrote: >> >> Hi, People, my name is Gilberto I from Brazil, I am development of Linux >> FeniX - www.sistemafenix.com.br >> I need your help about grub. >> I have a problem with grub source and I need your help urgently, I need >> change the code of the grub I need modify the boot loader code(grub) to >> check the byte at memory location 0x000ffa17. If >> this byte is 0x00, then go to the normal Windows booting, if this byte >> is >> 0x01, then >> go to the Instant On booting. >> >> But I need help to make this. Please help me. If necessary I will pay. > > Try inserting something like this in the right place (e.g. > grub_machine_init): > > if (*((grub_uint8_t *) 0x000ffa17)) > grub_env_set ("default", "1"); > else > grub_env_set ("default", "0"); > > -- > 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 > _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel