Excellent, quite useful!  These will also work for imgfetch etc. no?

Duane

On Sun, Nov 21, 2010 at 8:04 PM, Michael Brown <[email protected]> wrote:

> iPXE commands can now contain short-circuit logical operators such as "&&"
> and
> "||".  For example,
>
>  dhcp net0 || set net0/ip 192.168.0.2   # Use static IP if DHCP fails
>
> This makes it relatively easy to handle one of the common requests: how to
> avoid terminating a script when a command fails.  You can achieve this by
> simply appending "||" to the command line, e.g.
>
>  dhcp net0 ||    # Will not terminate script if DHCP fails
>
> Hope this is useful to someone.
>
> Michael
> _______________________________________________
> ipxe-devel mailing list
> [email protected]
> https://lists.ipxe.org/mailman/listinfo/ipxe-devel
>
_______________________________________________
ipxe-devel mailing list
[email protected]
https://lists.ipxe.org/mailman/listinfo/ipxe-devel

Reply via email to