Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JAGJc-0006aG-LO for mharc-grub-devel@gnu.org; Wed, 02 Jan 2008 22:00:16 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JAGJZ-0006ZY-Jy for grub-devel@gnu.org; Wed, 02 Jan 2008 22:00:13 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JAGJX-0006Yv-S4 for grub-devel@gnu.org; Wed, 02 Jan 2008 22:00:13 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JAGJW-0006Yj-Ur for grub-devel@gnu.org; Wed, 02 Jan 2008 22:00:10 -0500 Received: from an-out-0708.google.com ([209.85.132.246]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JAGJW-0001ie-Ni for grub-devel@gnu.org; Wed, 02 Jan 2008 22:00:10 -0500 Received: by an-out-0708.google.com with SMTP id c25so942881ana.84 for ; Wed, 02 Jan 2008 19:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=q7vxAePBfC1PXJdOIbb98PoPT6QeYPdRe593mcuhBbA=; b=gKzstKVs0zeLH+rFh/mmTVRVl4ilF2ThJhaieSMEJZdGT36lbTYz/T5pPFeoBxvVcOYgvDPMjhd/kCMWsa11iskooKZ/G+XQzrkOWZ2AdEEZTJoBO1eVGsUn6rZ0OwlDzoahhcJo45v/QaYH/3qY2nZMlByR4+7Mi9v8Ds66toM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=H4uPIJqUUuICYqkWu+8tn6kWW3GF7P6p9e4BcgNqGHD+chIYye7+NueSpzUqM3o/n+OIJnfIcGnDi3eFEUu7vUjJj2U8JELVTS2OhaN2eQ2LxsqCeIJ5IyVXq9JJ+gW3XgObadpZiSDieu5Gag8gRPV4ssW23Lq+8nkGdTg9eaI= Received: by 10.100.196.17 with SMTP id t17mr6290075anf.115.1199329209007; Wed, 02 Jan 2008 19:00:09 -0800 (PST) Received: by 10.100.45.10 with HTTP; Wed, 2 Jan 2008 19:00:08 -0800 (PST) Message-ID: <18d205ed0801021900i6093f28k2acd8ca60c879e91@mail.gmail.com> Date: Wed, 2 Jan 2008 22:00:08 -0500 From: "Gregg Levine" To: "The development of GRUB 2" In-Reply-To: <200801030111.m031Bui8023593@mail.moosefactory.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200801030111.m031Bui8023593@mail.moosefactory.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Conditional Statement in Grub 2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jan 2008 03:00:14 -0000 On Jan 2, 2008 8:11 PM, 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 > > I've search through the Grub site and see there is some support for scripting, > but I don't know how developed it is and if it can do what I'm asking. At the > boot loader stage can it even see the cdrom or USB? > > I also saw in the older Grub archives .... > > "For scripting support, there are a lot of uses. For example booting a > specific OS depending on the time. Some people requested that. If > you look in the pupa-devel archives, you can find the examples Okuji > gave." > > But, I can't find the pupa-devel archives, they seem to be off-line. > > 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. > > Any comments or direction would be much appreciated. > > Thanks and regards, > > Antonio > > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > Hello! This is for the GRUB2 development efforts. Ideally you'd want the one for Grub-Legacy. Oh and if your release of GRUB-0.97 was patched by the Centos builders in some way we'll be able to advise you of course, but your advised to bring the matter to them. -- Gregg C Levine gregg.drwho8@gmail.com "This signature was once found posting rude messages in English in the Moscow subway."