Execute shell script on other harddrive, Enable watchdog and control pxe boot – Kontron CP3003-V uEFI BIOS User Manual

Page 67

Advertising
background image

CP3003-SA/CP3003-V uEFI BIOS

The uEFI Shell

ID 1053-4014, Rev. 2.0

Page 61

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.2

Execute Shell Script on Other Harddrive

This example executes the shell script named bootme.nsh located in the root of the first de-
tected disc drive (fs0).

6.3.3.3

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:

fs0:

bootme.nsh

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
This manual is related to the following products: