Browse Source

custom configs

tags/v1.20.1-rthoni^0
Robin Thoni 4 years ago
parent
commit
13aae784fa
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E
4 changed files with 51 additions and 0 deletions
  1. 1
    0
      README-rt
  2. 6
    0
      src/config/local/console.h
  3. 11
    0
      src/config/local/general.h
  4. 33
    0
      src/script.ipxe

+ 1
- 0
README-rt View File

@@ -0,0 +1 @@
1
+make bin/undionly.kpxe EMBED=script.ipxe

+ 6
- 0
src/config/local/console.h View File

@@ -0,0 +1,6 @@
1
+#ifndef CONSOLE_H_RTHONI
2
+#define CONSOLE_H_RTHONI
3
+
4
+#define        CONSOLE_FRAMEBUFFER     /* Graphical framebuffer console */
5
+
6
+#endif

+ 11
- 0
src/config/local/general.h View File

@@ -0,0 +1,11 @@
1
+#ifndef CONSOLE_H_RTHONI
2
+#define CONSOLE_H_RTHONI
3
+
4
+#define PXE_CMD		/* PXE commands */
5
+#define REBOOT_CMD		/* Reboot command */
6
+#define POWEROFF_CMD		/* Power off command */
7
+
8
+#define PING_CMD		/* Ping command */
9
+#define CONSOLE_CMD		/* Console command */
10
+
11
+#endif

+ 33
- 0
src/script.ipxe View File

@@ -0,0 +1,33 @@
1
+#!ipxe
2
+
3
+set user-class iPXE-rthoni
4
+dhcp && isset ${filename} || goto main
5
+echo Booting from ${filename}
6
+chain ${filename}
7
+
8
+:main
9
+menu Fallback PXE
10
+
11
+item --gap -- Misc
12
+item chain-online Chain on rthoni.com
13
+item config Config
14
+
15
+item --gap -- Power
16
+item shell Shell
17
+item reboot Reboot
18
+
19
+choose choice && goto ${choice}
20
+
21
+:chain-online
22
+chain http://netboot.rthoni.com/boot.ipxe
23
+
24
+:config
25
+config
26
+goto main
27
+
28
+:shell
29
+shell
30
+
31
+:reboot
32
+reboot
33
+

Loading…
Cancel
Save