From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: who want money????
Date: Thu, 31 Jan 2008 23:54:29 +0100 [thread overview]
Message-ID: <20080131225429.GA23112@thorin> (raw)
In-Reply-To: <60851.201.21.145.69.1201819147.squirrel@webmail.sistemafenix.com.br>
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
<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 /.)
next prev parent reply other threads:[~2008-01-31 22:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-31 21:53 who want money???? gilberto
2008-01-31 22:18 ` Robert Millan
2008-01-31 22:35 ` Pavel Roskin
2008-01-31 22:55 ` Robert Millan
2008-02-01 11:46 ` Yoshinori K. Okuji
2008-01-31 22:39 ` gilberto
2008-01-31 22:54 ` Robert Millan [this message]
2008-01-31 23:57 ` gilberto
2008-02-01 0:05 ` Gilberto -Problem Grub2 compilation gilberto
2008-02-01 0:13 ` gilberto
2008-02-01 0:52 ` Robert Millan
2008-02-01 1:20 ` gilberto
2008-02-01 11:51 ` Robert Millan
2008-02-01 0:14 ` gilberto
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080131225429.GA23112@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.