diff options
author | Simon Rettberg | 2019-03-20 10:36:08 +0100 |
---|---|---|
committer | Simon Rettberg | 2019-03-20 10:36:08 +0100 |
commit | 4d773b27e9c5cc854c4525a2000f47eccc4f15fd (patch) | |
tree | 2887b0ab95e2e03fa1cf739277d723cb8ee8d5fa /modules-available/serversetup-bwlp-ipxe/api.inc.php | |
parent | [serversetup-bwlp-ipxe] Implement cascaded menus (diff) | |
download | slx-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.php | 4 |
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 |