Command syntax netbootloader, Script – Kontron NetBootLoader User Manual
Page 77

ID 1022-8317, Rev. 2.0
Command Syntax
NetBootLoader
Page 69
SCRIPT
FUNCTION:
Provides very basic scripting capability
SYNTAX:
script [
where:
script
command
parameter: string
<[x … ]x>
“
flow control constructs are not permitted; com-
mands must be separated by semi-colons
-
option:
delete script contents
DESCRIPTION:
With the SCRIPT command, it is possible to control the boot process.
During booting, if a valid script is available, the NetBootLoader will
process it once the boot wait time is expired.
If this command is issued without any parameters, the currently
active script contents are displayed.
If NetBootLoader configuration files (nbl0...9.cfg or other) are
executed during the boot process, it is possible that the script
specified will not be executed. This applies only to modules which
support NAND Flash.
USAGE:
Download a boot image from a TFTP server and run the boot image.
COMMAND / RESPONSE (none):
script dhcp; tftp; run
Upon the next reset or cold start, after the boot wait time has expired
the commands DHCP, TFTP, and RUN will be executed in that order.
The above command sequence configures an Ethernet port,
downloads the specified bootable image from an TFTP server, and
then starts this image.