[ipxe-devel] iPXE scripting enhancements
Duane Voth
duanev at gmail.com
Wed Dec 8 22:01:16 UTC 2010
Excellent, quite useful! These will also work for imgfetch etc. no?
Duane
On Sun, Nov 21, 2010 at 8:04 PM, Michael Brown <mcb30 at ipxe.org> 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
> ipxe-devel at lists.ipxe.org
> https://lists.ipxe.org/mailman/listinfo/ipxe-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20101208/d1b0f607/attachment.htm>
More information about the ipxe-devel
mailing list