echo [-n] [...]
echo hello world
echo ${filename}
echo MAC address is ${net0/mac}
echo -n Enter boot filename: read filename echo Booting from ${filename}
Print text to the console. As with all iPXE commands, any settings such as ${filename}
will be expanded. This allows echo
to be used to display the value of iPXE settings. For example, to display the boot filename obtained via DHCP:
iPXE> dhcp DHCP (net0 52:54:00:12:34:56)... ok iPXE> echo ${filename} http://boot.ipxe.org/demo/boot.php
If the -n
option is specified, then the trailing newline will not be printed.