Examples Of Startup Scripts - Kontron KBox C-102 Series User Manual

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Kbox c-102-2Kbox c-102-1Kbox c-102-4Kbox c-102-0

Table of Contents