J.H. wrote:
(sorry to get back to this so late, just popping off the e-mail stack
and this finally made it back to the top)
What I need to do, or what would make a lot of sense to me is the
following:
1 : Load gPXE
10 : try dhcp
20 : Chain to syslinux
20 : Syslinux set a variable in gPXE
30 : Syslinux exits
40 : if variable set - we successfully made it to syslinux - gPXE can exit
50 : if not variable set continue
60 : try static
70 : Chain to syslinux
80 : Syslinux set a variable in gPXE
90 : Syslinux exits
100: if variable set - we successfully made it to syslinux - gPXE can exit
110: if not variable goto 10
I *THINK* all I really need is to have some concept of an if statement,
even if it was nothing but if 0|1 I.E.
if variable <gpxe command> (or <gpxe command> if variable)
Stefan made a branch called "ifgoto" for this[1]. I also took a stab at
it tonight[2] ripping off his 'if' and including 'exit', running 575 bytes.
I just really need a simple mechanism to get a return code of some sort,
using gpxecmd.c32 should work, if I use it as the default or a custom
com32 module can be written that does what I need (just need to be able
to set the variable in gPXE)
I'm trying to think of a way to abuse the loopif construct suggested
here to get what I'm looking for now too ;-) but that might be a bit
more complicated.
Definitely more complicated, but likely doable. :S
Anyway hopefully this is helpful in what I'm kinda looking for.
- Shao Miller
[1]
http://git.etherboot.org/?p=people/stefanha/gpxe.git;a=shortlog;h=refs/heads/ifgoto
[2]
http://git.etherboot.org/?p=people/sha0/gpxe.git;a=shortlog;h=refs/heads/exit_if_goto
_______________________________________________
gPXE-devel mailing list
[email protected]
http://etherboot.org/mailman/listinfo/gpxe-devel