15.2.3. Examples of Startup Scripts
15.2.3.1. Execute Shell Script on other Hard Drive
This example (startup.nsh) executes the shell script named bootme.nsh located in the root of the first detected
disc drive (fs0).
15.2.3.2. Execute Shell Script on other Hard Drive
This example (startup.nsh) executes the shell script named bootme.nsh located in the root of the first detected
disc drive (fs0).
fs0:
bootme.nsh
15.2.3.3. Enable Watchdog
The uEFI Shell provides environment variables used to control the execution flow.
The following sample start-up script shows the uEFI Shell environment wdt_enable, used to control the Watchdog.
echo -off
echo "Executing sample startup.nsh..."
if %wdt_enable% == "on" then
kwatchdog -t 15
echo "Watchdog enabled"
endif
To create uEFI Shell environment variable, use the set uEFI Shell command as shown below:
Shell> set wdt_enable on
Shell> set
wdt_enable : on
Shell> reset
www.kontron.com
KBox C-102 - User Guide, Rev. 1.0
// 109