All of lore.kernel.org
 help / color / mirror / Atom feed
* Detect the motherboard model or especifc device in GRUB
@ 2011-04-05 12:56 gilson.santos
  2011-04-05 13:44 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-04-05 13:45 ` Colin Watson
  0 siblings, 2 replies; 3+ messages in thread
From: gilson.santos @ 2011-04-05 12:56 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 387 bytes --]


Hy i have a question,

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


regards



tks sorry for my poor english
**

[-- Attachment #2: Type: text/html, Size: 1003 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Detect the motherboard model or especifc device in GRUB
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-04-05 13:44 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 774 bytes --]

On 05.04.2011 14:56, gilson.santos@redepontocerto.com.br wrote:
>
> Hy i have a question,
>
> 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
>
menu.lst and grub-legacy aren't supported anymore. Switch to GRUB2
>
> regards
>
>
>
> tks sorry for my poor english
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Detect the motherboard model or especifc device in GRUB
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Colin Watson @ 2011-04-05 13:45 UTC (permalink / raw)
  To: grub-devel

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]


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-05 13:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.