summaryrefslogtreecommitdiffstats
path: root/modules-available/minilinux/hooks/ipxe-bootentry.inc.php
blob: 4e2cbb5e80b14e401048072d06a0fe409960ed7d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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();