From: phcoder <phcoder@gmail.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] LUA script engine for grub2
Date: Tue, 07 Apr 2009 17:18:52 +0200 [thread overview]
Message-ID: <49DB6EDC.80900@gmail.com> (raw)
In-Reply-To: <ca0f59980904070731q619d324fg5a3b50880fc3734e@mail.gmail.com>
Is it all from scratch? Wau. Very nice job. Unfortunately I don't know
any lua but I'll test this as time permits
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 Makefile.in 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 grub.run to execute grub commands, such as:
>
> grub.run("ls", "-l")
>
> To switch back to sh, you can run this command:
>
> grub.run("parser.sh")
>
> Here is a small lua program to solve the hanoi tower:
>
> function hanoi(n,a,b,c)
> if (n == 1) then
> print ("move from", a, "to", c)
> else
> hanoi (n-1, a, c, b)
> hanoi (1, a, b, c)
> hanoi (n-1, b, a, c)
> end
> end
> hanoi (3, 1, 2, 3)
>
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> http://lists.gnu.org/mailman/listinfo/grub-devel
--
Regards
Vladimir 'phcoder' Serbinenko
next prev parent reply other threads:[~2009-04-07 15:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-07 14:31 [PATCH] LUA script engine for grub2 Bean
2009-04-07 15:18 ` phcoder [this message]
2009-04-07 16:15 ` Vesa Jääskeläinen
2009-04-07 18:27 ` Bean
2009-04-08 14:40 ` Colin D Bennett
2009-04-08 17:02 ` Bean
2009-04-13 14:27 ` Robert Millan
2009-04-14 15:33 ` Yoshinori K. Okuji
2009-04-14 16:18 ` Bean
2009-05-03 8:46 ` Bean
2009-05-16 12:37 ` Bean
2009-05-16 13:31 ` Felix Zielcke
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49DB6EDC.80900@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.