
CP6004-SA/-RA/-RC/CP6004X-SA
The uEFI Shell
ID 1053-6161, Rev. 3.0
Page 67
D R A F T — F O R I N T E R N A L U S E O N L Y
6.3.3.4
Enable Watchdog and Control PXE Boot
The uEFI Shell provides environment variables used to control the execution flow.
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