On Sun, Mar 14, 2010 at 6:14 PM, Shao Miller <[email protected]> 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 _______________________________________________ gPXE-devel mailing list [email protected] http://etherboot.org/mailman/listinfo/gpxe-devel
