[Top][All Lists]

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

Re: who want money????

From: Robert Millan
Subject: Re: who want money????
Date: Thu, 31 Jan 2008 23:54:29 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, Jan 31, 2008 at 08:39:07PM -0200, address@hidden 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 @@
       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

<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]