diff options
| author | Michael Brown | 2010-11-22 02:47:07 +0100 |
|---|---|---|
| committer | Michael Brown | 2010-11-22 02:47:07 +0100 |
| commit | 9ba988809d2bae422fe36d5e6c8563b3cd6cac55 (patch) | |
| tree | 00a06c6a9d9b4702f3c31e5924b82b78c5ba6146 /src/include/ipxe/command.h | |
| parent | [pxe] Remove startpxe and stoppxe commands from default builds (diff) | |
| download | ipxe-9ba988809d2bae422fe36d5e6c8563b3cd6cac55.tar.gz ipxe-9ba988809d2bae422fe36d5e6c8563b3cd6cac55.tar.xz ipxe-9ba988809d2bae422fe36d5e6c8563b3cd6cac55.zip | |
[cmdline] Add trivial logical operators to iPXE command lines
Make the "||" and "&&" operators available within iPXE commands. For
example:
dhcp net0 || set net0/ip 192.168.0.2
would attempt to acquire an IP address via DHCP, falling back to a
static address if DHCP fails.
As a side-effect, comments may now be appended to any line. For
example:
dhcp net0 || set net0/ip 192.168.0.2 # Try DHCP first, then static
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/command.h')
0 files changed, 0 insertions, 0 deletions
