The uefi shell am4022 uefi bios – Kontron AM4022 uEFI BIOS User Manual

Page 70

Advertising
background image

The uEFI Shell

AM4022 uEFI BIOS

Page 64

ID 1052-1333, Rev. 1.0

The following sample start-up script shows two uEFI Shell environment variables,

wdt_enable

and

pxe_first

, used to control the boot process and the Watchdog.

To create uEFI Shell environment variables, use the set uEFI Shell command as shown below:

echo -off

echo “Executing sample startup.nsh...”

if %wdt_enable% == “on” then

kwdt -t 15

echo “Watchdog enabled”

endif

if %pxe_first% == “on” then

echo “forced booting from network”

kboot -t network

endif

Shell> set wdt_enable on

Shell> set pxe_first on

Shell> set

pxe_first : on

wdt_enable : on

Shell> reset

Advertising