Excellent, quite useful!  These will also work for imgfetch etc. no?<div><br></div><div>Duane<br><br><div class="gmail_quote">On Sun, Nov 21, 2010 at 8:04 PM, Michael Brown <span dir="ltr"><<a href="mailto:mcb30@ipxe.org">mcb30@ipxe.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">iPXE commands can now contain short-circuit logical operators such as "&&" and<br>
"||".  For example,<br>
<br>
  dhcp net0 || set net0/ip 192.168.0.2   # Use static IP if DHCP fails<br>
<br>
This makes it relatively easy to handle one of the common requests: how to<br>
avoid terminating a script when a command fails.  You can achieve this by<br>
simply appending "||" to the command line, e.g.<br>
<br>
  dhcp net0 ||    # Will not terminate script if DHCP fails<br>
<br>
Hope this is useful to someone.<br>
<br>
Michael<br>
_______________________________________________<br>
ipxe-devel mailing list<br>
<a href="mailto:ipxe-devel@lists.ipxe.org">ipxe-devel@lists.ipxe.org</a><br>
<a href="https://lists.ipxe.org/mailman/listinfo/ipxe-devel" target="_blank">https://lists.ipxe.org/mailman/listinfo/ipxe-devel</a><br>
</blockquote></div><br><br>
</div>