Detect the motherboard model or especifc device in GRUB
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
**
Quoted 10 lines · On 05.04.2011 14:56, [email protected] 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
Quoted 12 lines
regards
tks sorry for my poor english
_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
Signature · 2 lines
Regards Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 6 lines · On Tue, Apr 05, 2011 at 09:56:28AM -0300, [email protected]…
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?
Signature · 1 line
Colin Watson [[email protected]]