summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMichael Brown2010-11-22 05:19:24 +0100
committerMichael Brown2010-11-22 05:27:26 +0100
commit6d68ffee396af30c14b971ea677ba6e790695926 (patch)
tree7762d472d4f0128b9266b8f621d48afb31f05017 /src/include/usr
parent[cmdline] Add trivial logical operators to iPXE command lines (diff)
downloadipxe-6d68ffee396af30c14b971ea677ba6e790695926.tar.gz
ipxe-6d68ffee396af30c14b971ea677ba6e790695926.tar.xz
ipxe-6d68ffee396af30c14b971ea677ba6e790695926.zip
[script] Implement "goto" in iPXE scripts
Allow script labels to be defined using the syntax :<labelname> (nothing else allowed on the line, including whitespace). Labels are ignored during script execution, but can be used as the target of the "goto" command. For example: #!ipxe goto machine_${net0/ip} || goto machine_default # Linux kernel boot :machine_10.0.0.101 :machine_10.0.0.102 set filename http://my.boot.server/vmlinuz goto done # Default configuration :machine_default set filename pxelinux.0 goto done # Boot selected configuration :done chain ${filename} Originally-implemented-by: Shao Miller <shao.miller@yrdsb.edu.on.ca> Originally-implemented-by: Stefan Hajnoczi <stefanha@gmail.com> Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/usr')
0 files changed, 0 insertions, 0 deletions