summaryrefslogtreecommitdiffstats
path: root/modules-available
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available')
-rw-r--r--modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php b/modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php
index 9dce5214..a02c5180 100644
--- a/modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php
+++ b/modules-available/serversetup-bwlp-ipxe/inc/scriptbuildergrub.inc.php
@@ -183,6 +183,8 @@ EOF;
private function getMenuItemScript(MenuEntry $entry): string
{
+ if (!empty($entry->md5pass) || $entry->hidden)
+ return ''; // TODO
$str = "menuentry '" . str_replace("'", '', $entry->title) . "' --id 'id-" . $entry->menuentryid . "' {\n";
if ($entry->gap) {
$str .= "true\n"; // AFAICT, not possible in GRUB
@@ -251,7 +253,7 @@ echo "Unknown special command: $special"
sleep --interruptible --verbose 10
EOF;
}
- return $output;
+ return $output . "\n";
}
public function output(string $string): void