Re: Grub: can grub execute a script/batch file?
From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: Fri, 8 Oct 2004 18:23:17 -0400
On 7 Oct 2004 07:06:49 -0700, Sean Cleary
> This is a follow on question from the thread before.
> I want to copy a file (grub.0 or grub.1) into grub.conf upon using
> Grub. The object of this is to change the subsequent grub.conf to the
> file that contains the default choice that is a match for the choice
> chosen. Example: if grub.0 contains the default=0 line and this
> corresponds to Linux, when I chose Linux I want this file copied to
> Grub.conf. And when I chose DOS I want the grub.1 file containing the
> line default=1 (and other lines of the grub.conf file) to be copied
> over the Grub.conf file. As I said in the other thread, if this was
I think what you want is a menu.lst file with the savedefault option.
In "info grub", look for "Commands" and "Menu-specific Commands".
-- System Events =-=-=-=-=-=-= Sep 16 03:31:11 don kernel: lp0 on fire