[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] LUA script engine for grub2

From: Vesa Jääskeläinen
Subject: Re: [PATCH] LUA script engine for grub2
Date: Tue, 07 Apr 2009 19:15:44 +0300
User-agent: Thunderbird (Windows/20090302)

Bean wrote:
> Hi,
> This patch integrate the LUA script engine to grub2. Before applying
> this patch, you should apply the split module patch split_3.diff
> first.
> BTW, I forget to add the previous split_3.diff, so that
> handler.lst will not be generated, I include it in this one.
> To try the LUA engine, you can enter command line, and use:
> parser.lua
> Inside lua, you can use to execute grub commands, such as:
>"ls", "-l")
> To switch back to sh, you can run this command:

I would prefer something like grub.return or grub.exit, or something
like that if really needed.

Here is something that I would like that it can do:

In GUI definition:

action="\"ls\", \"-l\")" and action="my_lua_action.lua"

or just



action="ls -l" or action="(ba)sh:ls -l"

This way one could use both grub bash scripting and lua scripting.

Now if something is being executed in my_lua_action.lua and execution
comes to the end it should return to calling code.

grub_lua_execute_file("<file name to lua script>");
grub_lua_execute("<lua commands>");

reply via email to

[Prev in Thread] Current Thread [Next in Thread]