[gPXE-devel] Minor Scripting Improvements
Shao Miller
Shao.Miller at yrdsb.edu.on.ca
Wed Mar 17 14:46:21 EDT 2010
Shao Miller wrote:
> ...Stefan shared some insights today regarding the 'loopif' command's
> proximity to the flow control functionality that we eventually
> desire... Once flow control "proper" has been implemented, 'loopif'
> could be rendered redundant; removing it at that time would obviously
> not be a pleasant option....
Here's[1] a 409-byte (uncompressed) patch which includes 'exit', ':',
'goto', 'if'. Thanks for the great discussion, Stefan, it was fun
having a look at what these minor additions to the scripting system
could look like from the user's point of view. :)
An example script for iteration is included. One can build and test with:
$ make EMBEDDED_IMAGE=ifgotoexit.gpxe,iter.gpxe bin/gpxe.pdsk
...
$ qemu -fda bin/gpxe.pdsk -boot a
- Shao Miller
[1]
http://git.etherboot.org/?p=people/sha0/gpxe.git;a=commitdiff;h=3728015d4a52f6386d6093e7e192aee52ad0d952
More information about the gPXE-devel
mailing list