From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Q75nZ-0005iL-Vg for mharc-grub-devel@gnu.org; Tue, 05 Apr 2011 08:55:58 -0400 Received: from [140.186.70.92] (port=45499 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q75nS-0005Yy-Kx for grub-devel@gnu.org; Tue, 05 Apr 2011 08:55:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q75nQ-0004g8-E3 for grub-devel@gnu.org; Tue, 05 Apr 2011 08:55:49 -0400 Received: from linus.vbnet.com.br ([200.230.208.126]:46293 helo=linus-new.vbnet.com.br) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q75nP-0004cT-AQ for grub-devel@gnu.org; Tue, 05 Apr 2011 08:55:48 -0400 Received: from [192.168.2.172] (kenny.vbnet.com.br [200.230.208.19]) by linus-new.vbnet.com.br (Postfix) with ESMTP id 4D6898E0B2A for ; Tue, 5 Apr 2011 09:55:25 -0300 (BRT) Message-ID: <4D9B117C.6020000@redepontocerto.com.br> Date: Tue, 05 Apr 2011 09:56:28 -0300 From: "gilson.santos@redepontocerto.com.br" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: multipart/alternative; boundary="------------070606020802020407000400" X-Embryo-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 4D6898E0B2A.61405 X-Embryo-MailScanner: Found to be clean X-Embryo-MailScanner-SpamCheck: não spam (está em uma lista branca), SpamAssassin (not cached, escore=-4.999, requerido 5, autolearn=not spam, BAYES_00 -5.00, HTML_MESSAGE 0.00) X-Embryo-MailScanner-From: gilson.santos@redepontocerto.com.br X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 200.230.208.126 Subject: Detect the motherboard model or especifc device in GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 12:55:56 -0000 This is a multi-part message in MIME format. --------------070606020802020407000400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 ** --------------070606020802020407000400 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
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
--------------070606020802020407000400-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Q76ZO-0006Jb-R2 for mharc-grub-devel@gnu.org; Tue, 05 Apr 2011 09:45:22 -0400 Received: from [140.186.70.92] (port=43314 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q76ZK-0006G9-22 for grub-devel@gnu.org; Tue, 05 Apr 2011 09:45:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q76ZG-00040O-8w for grub-devel@gnu.org; Tue, 05 Apr 2011 09:45:17 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:50230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q76ZG-000405-3D for grub-devel@gnu.org; Tue, 05 Apr 2011 09:45:14 -0400 Received: by bwz17 with SMTP id 17so367544bwz.0 for ; Tue, 05 Apr 2011 06:45:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=3dtCiRLmPVRUODE63nvRufaHNO2U6U77j8OqT0mZdwI=; b=jtE6vhqW2reKlEr0gAv75i3AO5xN7K6Cz1HqNTmlLydqblcK72QNaNPP+ZB1AtZVgl 6klOCwk3/6TY0UMwz7kBUqczMGNyEWOC9KXRh4XaYHoc38MT8pRhR35BAJV1CgWtyB0b N8/tMe0WnL6TXcbHMGU+ew17/qSZ0kSZjfMi4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=Sc33KdhvYh6KR9MyWLz6SDBi7BJD4x1JUsVV43UUNCwKGtgxe7xdnJhRPppADK1dkN rabttgCFQsuAv0rzVIhkjEMc/fZOXU54Wn3FKZ5duQPXPfDiOu7Oms7Y6RzYg2h1K2IV KP7tA/TEbmsg6PUNp8DBtwIMoX47HXNku4y3Y= Received: by 10.204.74.85 with SMTP id t21mr7164267bkj.128.1302011113015; Tue, 05 Apr 2011 06:45:13 -0700 (PDT) Received: from debian.x201.phnet (gprs47.swisscom-mobile.ch [193.247.250.47]) by mx.google.com with ESMTPS id b6sm3766014bkb.22.2011.04.05.06.45.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 05 Apr 2011 06:45:11 -0700 (PDT) Message-ID: <4D9B1CD9.7060002@gmail.com> Date: Tue, 05 Apr 2011 15:44:57 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Iceowl/1.0b2 Icedove/3.1.9 MIME-Version: 1.0 To: grub-devel@gnu.org References: <4D9B117C.6020000@redepontocerto.com.br> In-Reply-To: <4D9B117C.6020000@redepontocerto.com.br> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigB1626AC73DA8BF8C8D8B0B0B" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 Subject: Re: Detect the motherboard model or especifc device in GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 13:45:21 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB1626AC73DA8BF8C8D8B0B0B Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigB1626AC73DA8BF8C8D8B0B0B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk2bHN8ACgkQNak7dOguQgkr8AEAviPlK1FnDcF986oYIvzfzDfQ qUr/mqsnYtnp6hiJ8iIA/1KcGts2vmZD+VlhpyG60LwOEKGA5IaHoiBoz/TlByFY =Lbi6 -----END PGP SIGNATURE----- --------------enigB1626AC73DA8BF8C8D8B0B0B-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Q76ZQ-0006Ku-Vc for mharc-grub-devel@gnu.org; Tue, 05 Apr 2011 09:45:25 -0400 Received: from [140.186.70.92] (port=43337 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q76ZK-0006He-Px for grub-devel@gnu.org; Tue, 05 Apr 2011 09:45:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q76ZJ-00041h-LS for grub-devel@gnu.org; Tue, 05 Apr 2011 09:45:18 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:34502) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q76ZJ-00040e-Eo for grub-devel@gnu.org; Tue, 05 Apr 2011 09:45:17 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Q76ZG-0003zI-HM for grub-devel@gnu.org; Tue, 05 Apr 2011 13:45:14 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 4.72) (envelope-from ) id 1Q76ZE-0006eT-Er for grub-devel@gnu.org; Tue, 05 Apr 2011 14:45:12 +0100 Date: Tue, 5 Apr 2011 14:45:11 +0100 From: Colin Watson To: grub-devel@gnu.org Message-ID: <20110405134511.GE9163@riva.ucam.org> References: <4D9B117C.6020000@redepontocerto.com.br> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D9B117C.6020000@redepontocerto.com.br> User-Agent: Mutt/1.5.20 (2009-06-14) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 212.23.3.141 Subject: Re: Detect the motherboard model or especifc device in GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 13:45:23 -0000 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]