summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/page.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-25 12:16:57 +0100
committerSimon Rettberg2019-03-25 12:16:57 +0100
commit153062577e4de44c612b5e1a8003fc7c38420790 (patch)
tree68691cc9f7243dcd7b4e9ffcd48f112d00a950bb /modules-available/serversetup-bwlp-ipxe/page.inc.php
parent[sysconfig] Try passing arguments in proper order (diff)
downloadslx-admin-153062577e4de44c612b5e1a8003fc7c38420790.tar.gz
slx-admin-153062577e4de44c612b5e1a8003fc7c38420790.tar.xz
slx-admin-153062577e4de44c612b5e1a8003fc7c38420790.zip
[serversetup-bwlp-ipxe] On empty bootentry list, import subnets too
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/page.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/page.inc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/page.inc.php b/modules-available/serversetup-bwlp-ipxe/page.inc.php
index 5ca11c86..bcb241b5 100644
--- a/modules-available/serversetup-bwlp-ipxe/page.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/page.inc.php
@@ -299,6 +299,12 @@ class Page_ServerSetup extends Page
if (empty($bootentryTable)) {
IPxe::importLegacyMenu(true);
+ $num = IPxe::importSubnetPxeMenus('/srv/openslx/tftp/pxelinux.cfg');
+ if ($num > 0) {
+ EventLog::info('Imported old PXELinux menu, with ' . $num . ' additional IP-range based menus.');
+ } else {
+ EventLog::info('Imported old PXELinux menu.');
+ }
Util::redirect('?do=serversetup&show=bootentry');
}