From: Colin Watson <cjwatson@ubuntu.com>
To: grub-devel@gnu.org
Subject: Re: Detect the motherboard model or especifc device in GRUB
Date: Tue, 5 Apr 2011 14:45:11 +0100 [thread overview]
Message-ID: <20110405134511.GE9163@riva.ucam.org> (raw)
In-Reply-To: <4D9B117C.6020000@redepontocerto.com.br>
On Tue, Apr 05, 2011 at 09:56:28AM -0300, gilson.santos@redepontocerto.com.br wrote:
> its possible execute a bash script on grub commando line? (option
> "c" on grub), to be more especificle a have two motherboards and i
> need to detect her before the kernel is loaded,
>
> the bash script for example verify with "lspci" and make a "choice"
> in to menu.lst, and booting the kernel for especificle hardware
No, bash is not available in GRUB. However, the GRUB command line has a
syntax quite similar to bash, and you can use it to perform conditional
operations.
At present, though, I don't think there's a way to use PCI configuration
information in a GRUB script condition. Perhaps there's something else
you can base the decision on?
--
Colin Watson [cjwatson@ubuntu.com]
prev parent reply other threads:[~2011-04-05 13:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 12:56 Detect the motherboard model or especifc device in GRUB gilson.santos
2011-04-05 13:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-04-05 13:45 ` Colin Watson [this message]
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=20110405134511.GE9163@riva.ucam.org \
--to=cjwatson@ubuntu.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.