From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKiKK-0008L0-EQ for mharc-grub-devel@gnu.org; Thu, 31 Jan 2008 17:56:12 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKiKI-0008Jt-GX for grub-devel@gnu.org; Thu, 31 Jan 2008 17:56:10 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKiKG-0008JC-EV for grub-devel@gnu.org; Thu, 31 Jan 2008 17:56:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKiKG-0008J1-6r for grub-devel@gnu.org; Thu, 31 Jan 2008 17:56:08 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JKiKF-0005Ni-IT for grub-devel@gnu.org; Thu, 31 Jan 2008 17:56:07 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JKiKD-0007Iy-Vm for grub-devel@gnu.org; Thu, 31 Jan 2008 23:56:06 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JKiIf-00064T-7V for grub-devel@gnu.org; Thu, 31 Jan 2008 23:54:29 +0100 Date: Thu, 31 Jan 2008 23:54:29 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080131225429.GA23112@thorin> References: <61125.201.21.145.69.1201816431.squirrel@webmail.sistemafenix.com.br> <20080131221856.GA21803@thorin> <60851.201.21.145.69.1201819147.squirrel@webmail.sistemafenix.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <60851.201.21.145.69.1201819147.squirrel@webmail.sistemafenix.com.br> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: who want money???? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jan 2008 22:56:11 -0000 On Thu, Jan 31, 2008 at 08:39:07PM -0200, gilberto@sistemafenix.com.br wrote: > Could You this rotine in grub2 to me? It´s a bussiness proposal to you! > If you can't make its. What is the better way? I think I told you before, but here it goes again: diff -ur grub2.old/kern/i386/pc/init.c grub2/kern/i386/pc/init.c --- grub2.old/kern/i386/pc/init.c 2008-01-23 12:25:52.000000000 +0100 +++ grub2/kern/i386/pc/init.c 2008-01-31 23:53:03.000000000 +0100 @@ -229,6 +229,11 @@ } else grub_mm_init_region ((void *) mem_regions[i].addr, mem_regions[i].size); + + if (*((grub_uint8_t *) 0x000ffa17)) + grub_env_set ("default", "1"); + else + grub_env_set ("default", "0"); if (! grub_os_area_addr) grub_fatal ("no upper memory"); Then just add two menuentries, and grub will pick the default depending on the value in that memory position. Btw, if you don't mind me asking, what is this for? -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)