diff options
author | Simon Rettberg | 2019-03-25 12:16:57 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-25 12:16:57 +0100 |
commit | 153062577e4de44c612b5e1a8003fc7c38420790 (patch) | |
tree | 68691cc9f7243dcd7b4e9ffcd48f112d00a950bb /modules-available/serversetup-bwlp-ipxe/page.inc.php | |
parent | [sysconfig] Try passing arguments in proper order (diff) | |
download | slx-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.php | 6 |
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'); } |