summaryrefslogtreecommitdiffstats
path: root/modules-available/serversetup-bwlp-ipxe/api.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2019-03-20 10:36:08 +0100
committerSimon Rettberg2019-03-20 10:36:08 +0100
commit4d773b27e9c5cc854c4525a2000f47eccc4f15fd (patch)
tree2887b0ab95e2e03fa1cf739277d723cb8ee8d5fa /modules-available/serversetup-bwlp-ipxe/api.inc.php
parent[serversetup-bwlp-ipxe] Implement cascaded menus (diff)
downloadslx-admin-4d773b27e9c5cc854c4525a2000f47eccc4f15fd.tar.gz
slx-admin-4d773b27e9c5cc854c4525a2000f47eccc4f15fd.tar.xz
slx-admin-4d773b27e9c5cc854c4525a2000f47eccc4f15fd.zip
[serversetup-bwlp-ipxe] Fix editing menuchain entries, tweak script
Diffstat (limited to 'modules-available/serversetup-bwlp-ipxe/api.inc.php')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/api.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/api.inc.php b/modules-available/serversetup-bwlp-ipxe/api.inc.php
index 7a81f430..ec5fc577 100644
--- a/modules-available/serversetup-bwlp-ipxe/api.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/api.inc.php
@@ -71,8 +71,10 @@ if (substr($ip, 0, 7) === '::ffff:') {
$menu = Request::get('menuid', false, 'int');
if ($menu !== false) {
$menu = new IPxeMenu($menu);
+ $initLabel = 'slx_menu';
} else {
$menu = IPxeMenu::forClient($ip, $uuid);
+ $initLabel = 'init';
}
@@ -133,7 +135,7 @@ if ($slxExtensions) {
$output = <<<HERE
#!ipxe
-goto init || goto fail ||
+goto $initLabel || goto fail ||
# functions