<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
<tt>J.H. wrote:</tt>
<blockquote type="cite" cite="mid:4BA02A0D.4000201@eaglescrag.net">
<title>Re: [gPXE-devel] Minor Scripting Improvements</title>
<!-- Converted from text/plain format -->
<p><tt><font size="2">(sorry to get back to this so late, just
popping off the e-mail stack<br>
and this finally made it back to the top)<br>
<br>
What I need to do, or what would make a lot of sense to me is the
following:<br>
<br>
1 : Load gPXE<br>
10 : try dhcp<br>
20 : Chain to syslinux<br>
20 : Syslinux set a variable in gPXE<br>
30 : Syslinux exits<br>
40 : if variable set - we successfully made it to syslinux - gPXE can
exit<br>
50 : if not variable set continue<br>
60 : try static<br>
70 : Chain to syslinux<br>
80 : Syslinux set a variable in gPXE<br>
90 : Syslinux exits<br>
100: if variable set - we successfully made it to syslinux - gPXE can
exit<br>
110: if not variable goto 10<br>
<br>
I *THINK* all I really need is to have some concept of an if statement,<br>
even if it was nothing but if 0|1 I.E.<br>
<br>
if variable <gpxe command> (or <gpxe command> if variable)<br>
</font></tt></p>
</blockquote>
<tt><br>
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.<br>
<br>
</tt>
<blockquote type="cite" cite="mid:4BA02A0D.4000201@eaglescrag.net">
<p><tt><font size="2">I just really need a simple mechanism to get a
return code of some sort,<br>
using gpxecmd.c32 should work, if I use it as the default or a custom<br>
com32 module can be written that does what I need (just need to be able<br>
to set the variable in gPXE)<br>
<br>
I'm trying to think of a way to abuse the loopif construct suggested<br>
here to get what I'm looking for now too ;-) but that might be a bit<br>
more complicated.<br>
</font></tt></p>
</blockquote>
<tt><br>
Definitely more complicated, but likely doable. :S<br>
<br>
</tt>
<blockquote type="cite" cite="mid:4BA02A0D.4000201@eaglescrag.net">
<p><tt><font size="2">Anyway hopefully this is helpful in what I'm
kinda looking for.</font></tt></p>
</blockquote>
<tt><font size="2"><br>
- Shao Miller<br>
<br>
[1]
<a href="http://git.etherboot.org/?p=people/stefanha/gpxe.git;a=shortlog;h=refs/heads/ifgoto" class="moz-txt-link-freetext">http://git.etherboot.org/?p=people/stefanha/gpxe.git;a=shortlog;h=refs/heads/ifgoto</a><br>
[2]
<a href="http://git.etherboot.org/?p=people/sha0/gpxe.git;a=shortlog;h=refs/heads/exit_if_goto" class="moz-txt-link-freetext">http://git.etherboot.org/?p=people/sha0/gpxe.git;a=shortlog;h=refs/heads/exit_if_goto</a><br>
</font></tt>
</body>
</html>