summaryrefslogtreecommitdiffstats
path: root/modules-available/minilinux/hooks/ipxe-bootentry.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/minilinux/hooks/ipxe-bootentry.inc.php')
-rw-r--r--modules-available/minilinux/hooks/ipxe-bootentry.inc.php42
1 files changed, 42 insertions, 0 deletions
diff --git a/modules-available/minilinux/hooks/ipxe-bootentry.inc.php b/modules-available/minilinux/hooks/ipxe-bootentry.inc.php
new file mode 100644
index 00000000..4e2cbb5e
--- /dev/null
+++ b/modules-available/minilinux/hooks/ipxe-bootentry.inc.php
@@ -0,0 +1,42 @@
+<?php
+
+class Wurst extends BootEntryHook
+{
+
+ public function name()
+ {
+ return 'Wurst';
+ }
+
+ /**
+ * @return HookEntryGroup[]
+ */
+ protected function groupsInternal()
+ {
+ return [
+ new HookEntryGroup('Senf Gruppe', [
+ new HookEntry('senf-1', 'Senf v1'),
+ new HookEntry('senf-2', 'Senf v2'),
+ ]),
+ new HookEntryGroup('Schnecke Gruppe', [
+ new HookEntry('s-1', 'Trulla'),
+ new HookEntry('s-2', 'Herbert'),
+ ]),
+ ];
+ }
+
+ /**
+ * @param $id
+ * @return BootEntry the actual boot entry instance for given entry, false if invalid id
+ */
+ public function getBootEntry($id)
+ {
+ $bios = new ExecData();
+ $bios->executable = 'mspaint.exe';
+ $bios->initRd = 'www.google.de';
+ $bios->commandLine = '-q';
+ return BootEntry::newStandardBootEntry($bios, false, 'agnostic');
+ }
+}
+
+return new Wurst(); \ No newline at end of file