initial commit of file from CVS for smeserver-pxe on Sat Sep 7 20:56:31 AEST 2024
This commit is contained in:
1
root/etc/e-smith/db/configuration/defaults/pxe/00:06
Normal file
1
root/etc/e-smith/db/configuration/defaults/pxe/00:06
Normal file
@@ -0,0 +1 @@
|
||||
BOOTIA32.EFI
|
1
root/etc/e-smith/db/configuration/defaults/pxe/00:07
Normal file
1
root/etc/e-smith/db/configuration/defaults/pxe/00:07
Normal file
@@ -0,0 +1 @@
|
||||
BOOTX64.EFI
|
1
root/etc/e-smith/db/configuration/defaults/pxe/default
Normal file
1
root/etc/e-smith/db/configuration/defaults/pxe/default
Normal file
@@ -0,0 +1 @@
|
||||
pxelinux.0
|
1
root/etc/e-smith/db/configuration/defaults/pxe/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/pxe/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/pxe/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/pxe/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1,7 @@
|
||||
{
|
||||
if ($pxe{status} eq "enabled")
|
||||
{
|
||||
return "option client-architecture code 93 = unsigned integer 16;";
|
||||
}
|
||||
}
|
||||
|
42
root/etc/e-smith/templates/etc/dhcpd.conf/27pxe
Normal file
42
root/etc/e-smith/templates/etc/dhcpd.conf/27pxe
Normal 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";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user