{%
local ipmc_boot_mode = {
None = 'No override',
Pxe = 'Force PXE',
Floppy = 'Force boot from Floppy/primary removable media',
Cd = 'Force boot from default CD/DVD',
Hdd = 'Force boot from default Hard-drive',
BiosSetup = 'Force boot into BIOS Setup'
}
if BootSourceOverrideEnabled == 'Disabled' then
local line1 = string.format('%-8s device: Unspecified\n', 'Boot')
local line2 = string.format('%-10s type: %s', 'Effective', 'Once')
echo(line1, line2)
elseif BootSourceOverrideEnabled == 'Once' then
local line1 = string.format('%-8s device: %s\n', 'Boot', ipmc_boot_mode[BootSourceOverrideTarget])
local line2 = string.format('%-10s type: %s', 'Effective', 'Once')
echo(line1, line2)
elseif BootSourceOverrideEnabled == 'Continuous' then
local line1 = string.format('%-8s device: %s\n', 'Boot', ipmc_boot_mode[BootSourceOverrideTarget])
local line2 = string.format('%-10s type: %s', 'Effective', 'Permanent')
echo(line1, line2)
end
%}