summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-25 17:12:49 +0100
committerSimon Rettberg2019-03-25 17:12:49 +0100
commitd76372a64f9f4fa60f0818e9e597613cfce7d496 (patch)
tree0f2b1ad8bc1467b7193c067ba6ccf12b6c2163fb /modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
parent[serversetup-bwlp-ipxe] Fix type error (BootEntry vs PxeSection) (diff)
downloadslx-admin-d76372a64f9f4fa60f0818e9e597613cfce7d496.tar.gz
slx-admin-d76372a64f9f4fa60f0818e9e597613cfce7d496.tar.xz
slx-admin-d76372a64f9f4fa60f0818e9e597613cfce7d496.zip
[serversetup-bwlp-ipxe] Support DEFAULT directive of pxelinux
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
index a78ad941..2aecd70f 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/ipxe.inc.php
@@ -162,8 +162,10 @@ class IPxe
if (!empty($pxe->title)) {
$menuTitle = $pxe->title;
}
- if ($pxe->timeoutLabel !== null) {
+ if ($pxe->timeoutLabel !== null && $pxe->hasLabel($pxe->timeoutLabel)) {
$defaultLabel = $pxe->timeoutLabel;
+ } elseif ($pxe->hasLabel($pxe->default)) {
+ $defaultLabel = $pxe->default;
}
$timeoutMs[] = $pxe->timeoutMs;
$timeoutMs[] = $pxe->totalTimeoutMs;