Robin Thoni 4 years ago
parent
commit
7fd6b04886
Signed by: Robin THONI <robin@rthoni.com> GPG Key ID: 4E09DEF46B99E61E
2 changed files with 24 additions and 3 deletions
  1. 1
    1
      README
  2. 23
    2
      src/script.ipxe

+ 1
- 1
README View File

@@ -3,6 +3,6 @@ iPXE README File
3 3
 Quick start guide:
4 4
 
5 5
    cd src
6
-   make
6
+   make bin/undionly.kpxe EMBED=script.ipxe
7 7
 
8 8
 For any more detailed instructions, see http://ipxe.org

+ 23
- 2
src/script.ipxe View File

@@ -1,4 +1,25 @@
1 1
 #!ipxe
2 2
 
3
-dhcp
4
-chain http://netboot/boot.ipxe
3
+dhcp && isset ${filename} || goto fallback
4
+echo Booting from ${filename}
5
+chain ${filename}
6
+
7
+:fallback
8
+menu Fallback PXE
9
+
10
+item --gap -- Misc
11
+item chain-online Chain on rthoni.com
12
+item shell Shell
13
+item reboot Reboot
14
+choose choice && goto ${choice}
15
+
16
+:chain-online
17
+chain http://netboot.rthoni.com/boot.ipxe
18
+
19
+:shell
20
+shell
21
+
22
+:reboot
23
+reboot
24
+
25
+#chain http://netboot/boot.ipxe

Loading…
Cancel
Save