[gPXE-devel] (no subject)
Stefan Hajnoczi
stefanha at gmail.com
Mon Mar 15 06:06:51 EDT 2010
On Sun, Mar 14, 2010 at 6:14 PM, Shao Miller
<Shao.Miller at yrdsb.edu.on.ca> wrote:
> One of the ideas I had about 'loopif' was that one could have a collection
> of specialized scripts and the top-level script could do something like:
>
> #!gpxe
> set keep-running 1
> imgfree
> imgload ${next-script}.gpxe
> boot ${next-script}.gpxe
> loopif ${keep-running}
>
> Other scripts could then set next-script and keep-running as needed in order
> to perform something akin to 'goto'. I really wanted to offer something
> that could achieve flow control with minimal impact on gPXE code size.
> Having said that...
I can't see how 'loopif' and executing scripts support a general
if-else statement. Executing scripts allows code snippets to be
called out to, but a conditional is still required to choose the right
name for the script to call (think if-else statement).
Maybe I am missing something?
Stefan
More information about the gPXE-devel
mailing list