All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Conditional Statement in Grub 2
Date: Thu, 3 Jan 2008 12:40:41 +0100	[thread overview]
Message-ID: <20080103114041.GC6358@thorin> (raw)
In-Reply-To: <200801030111.m031Bui8023593@mail.moosefactory.com>

On Thu, Jan 03, 2008 at 01:11:56AM -0000, Antonio Dupont wrote:
> 
> 
> Hello,
> 
> I apologize if this is the wrong list, but this is the list I have found
> through my searches.  Please tell me where to go if this is not the proper place.
> 
> I would like to have grub do a conditional statement similar to this:
> 
> if file_name on /dev/cdrom matches file_name on /dev/sda1 (USB device) then
> boot Linux else boot Windows 

You can do this with GRUB, the syntax I don't recall exactly but it is
bash-like.

> I'm using CentOS 5.0 and if I can do it with Grub 0.97 that comes with the
> distro that would be great.  I can also upgrade if needed.

GRUB 2 only.

-- 
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 /.)



      parent reply	other threads:[~2008-01-03 11:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-03  1:11 Conditional Statement in Grub 2 Antonio Dupont
2008-01-03  3:00 ` Gregg Levine
2008-01-03 16:32   ` Antonio Dupont (Moose Factory)
2008-01-03 19:09     ` Antonio Dupont
2008-01-03 11:40 ` Robert Millan [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=20080103114041.GC6358@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.