initial commit of file from CVS for smeserver-pxe on Sat Sep 7 20:56:31 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:56:31 +10:00
parent 9449cfbf61
commit 4af109efa2
13 changed files with 182 additions and 2 deletions

View File

@@ -0,0 +1 @@
BOOTIA32.EFI

View File

@@ -0,0 +1 @@
BOOTX64.EFI

View File

@@ -0,0 +1 @@
pxelinux.0

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
configuration

View File

@@ -0,0 +1,7 @@
{
if ($pxe{status} eq "enabled")
{
return "option client-architecture code 93 = unsigned integer 16;";
}
}

View File

@@ -0,0 +1,42 @@
{
if ($pxe{status} eq "enabled")
{
if ($pxe{nextserver})
{
$OUT .= " next-server $pxe{nextserver};\n\n";
}
my $seq = 0;
while (my ($arch, $prog) = each (%pxe))
{
unless ($arch eq 'default' || $arch eq 'type' || $arch eq 'status' || $arch eq 'nextserver' || $arch eq 'dir')
{
if ($prog)
{
++$seq;
if ($seq eq 1)
{
$OUT .= " if option client-architecture = $arch {\n";
$OUT .= " filename \"$pxe{dir}/$prog\";\n";
$OUT .= " }\n";
}
else
{
$OUT .= " elsif option client-architecture = $arch {\n";
$OUT .= " filename \"$pxe{dir}/$prog\";\n";
$OUT .= " }\n";
}
}
}
}
if ($seq eq 0)
{
$OUT .= " filename \"$pxe{dir}/$pxe{default}\";\n";
}
else
{
$OUT .= " else {\n";
$OUT .= " filename \"$pxe{dir}/$pxe{default}\";\n";
$OUT .= " }\n";
}
}
}