diff options
| author | Michael Brown | 2012-07-12 16:28:37 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-07-12 16:46:24 +0200 |
| commit | c5c257788f36d178176eb59b0d4c5fdd88080c19 (patch) | |
| tree | a285348bbea4dbb2244286f51ae256ded721a249 /src/config | |
| parent | [cmdline] Store exit status of failed command in errno (diff) | |
| download | ipxe-c5c257788f36d178176eb59b0d4c5fdd88080c19.tar.gz ipxe-c5c257788f36d178176eb59b0d4c5fdd88080c19.tar.xz ipxe-c5c257788f36d178176eb59b0d4c5fdd88080c19.zip | |
[settings] Expose exit status of failed command via ${errno}
Allow scripts to report errors in more detail by exposing the most
recent error via the ${errno} setting. For example:
chain ${filename} || goto failed
...
:failed
imgfree http://192.168.0.1/ipxe_error.php?error=${errno}
Note that ${errno} is valid only immediately after executing a failed
command.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
0 files changed, 0 insertions, 0 deletions
