forked from netbootxyz/netboot.xyz-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.ipxe
More file actions
56 lines (49 loc) · 1.46 KB
/
Copy pathcustom.ipxe
File metadata and controls
56 lines (49 loc) · 1.46 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!ipxe
###
### netboot.xyz custom menu
###
:custom
clear custom_choice
menu Custom Boot Options
item --gap -- Custom Operating Systems -------------
item RAID_Linux Custom Linux ISO for DELL PERC RAID
item RAID_DOS FreeDOS v2.4 Custom (with RAID drivers)
item --gap -- Options -----------------------------
item url_set ${space} Linux Base URL [ ${localurl} ]
item refresh ${space} Refresh this menu
item --gap -- --------------------------------------
item returntomain Return to Main Menu
choose custom_choice || goto custom_exit
echo ${cls}
goto ${custom_choice}
:refresh
chain custom.ipxe || goto custom_exit
:url_set
echo Set the HTTP URL of your Linux files with the trailing slash:
echo e.g. http://192.168.1.4/dellperclinux/
echo
echo -n URL: ${} && read localurl
echo
echo netboot.xyz will attempt to load the following files:
echo ${localurl}vmlinuz-amd64
echo ${localurl}initrd.img.amd64
echo
prompt Press any key to return to Custom Menu...
goto custom
:RAID_DOS
imgfree
kernel ${memdisk} iso raw
initrd http://192.168.1.4/deesh-FreeDOS-v2.4.iso
boot || goto custom_exit
:RAID_Linux
isset localurl || set localurl http://192.168.1.4/dellperclinux/
imgfree
echo Loading kernel from: ${localurl}vmlinuz-amd64
kernel ${localurl}vmlinuz-amd64 || echo "Failed to load kernel"
echo Loading initrd from: ${localurl}initrd.img.amd64
initrd ${localurl}initrd.img.amd64 || echo "Failed to load initrd"
boot || echo "Boot failed"
:custom_exit
exit
:returntomain
chain menu.ipxe