initial commit of file from CVS for smeserver-pxe

This commit is contained in:
Trevor Batley
2023-02-26 15:55:49 +11:00
commit 7c5d8cb0df
18 changed files with 1316 additions and 0 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";
}
}
}