Run Script Before Boot Menu

Hi.
Is it possible to run a script before the Boot Menu appears?
I mean the menu where i can choose between openSUSE 11.4 and others.
I already know how to make a script and everything.
And how to use the Cron Jobs
I think it is something with /etc/init.d
But please help me :slight_smile:

Thanks in Advance

I mean the menu where i can choose between openSUSE 11.4 and others.

Do you mean the menu of what to boot? There is no OS yet at that stage.

Yes. That menu. Can i add an script before the Boot Menu?

ryanrio95 wrote:
> Hi.
> Is it possible to run a script before the Boot Menu appears?
> I mean the menu where i can choose between openSUSE 11.4 and others.
> I already know how to make a script and everything.
> And how to use the Cron Jobs
> I think it is something with /etc/init.d
> But please help me :slight_smile:

Before the boot menu appears, it is ‘grub’ that is running, not Linux.

So all the conventional scripting facilities are not available.

opensuse still uses the old ‘legacy grub’ but in the current/new grub
(grub2) that is used by Ubuntu and other distros, you can run a script. See:

http://www.gnu.org/software/grub/manual/html_node/Shell_002dlike-scripting.html

You can boot an opensuse system using ubuntu’s grub.

Thanks for the help.
So, it’s only possible with Grub 2?
And is it possible when i install grub2?

If you tell us what you want to do, we might be able to tell you how and when you’ll have to run the script.