david/ipxe
david
/
ipxe
Archived
1
0
Fork 0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/menu.ipxe

64 lines
1.4 KiB
Plaintext

#!ipxe
# ipxe menu (stargazer.socialnerds.org)
:dhcp
dhcp net0 || goto dhcp
colour --basic 9 4
colour --basic 6 1
# configuration
set server_name stargazer.socialnerds.org
set server_ip ${net0/gateway}
set iscsi_portal 10.1.5.2
# loading custom ipxe menues
#:custom
#echo Loading custom menu for ${net0/ip}
#chain tftp://${server_ip}/${net0/ip}.ipxe || goto menu
#goto ${net0/ip}
#goto custom
:menu
menu stargazer.socialnerds.org (tftp://${net0/gateway})
item --gap MAC Address: ${net0/mac}
item --gap IP Address: ${net0/ip}
item --gap Netmask: ${net0/netmask}
item --gap Gateway: ${net0/gateway}
item --gap DNS: ${net0/dns}
item
item
item localboot Boot into SolusOS
item archlinux Boot into Archlinux
item windows81 Boot into Windows 8.1
item
choose target && goto ${target}
goto menu
:solusos
echo Booting into SolusOS from local SSD.
sleep 1
sanboot --no-describe --drive 0x80 || goto menu
:windows81
echo Booting into Windows 8.1 from ISCSI.
dhcp net1 || goto windows81
set net1/gateway 0.0.0.0
set net1/keep-san 1
sleep 1
sanboot --keep iscsi:${iscsi_portal}:::0:ghostwin81 || goto menu
#sanboot --keep iscsi:${iscsi_portal}:::1:iqn.2000-01.com.synology:spacedock.ghost.e84d7761fd || goto menu
:archlinux
echo Booting into Archlinux from ISCSI.
dhcp net1 || goto archlinux
#set net1/gateway 0.0.0.0
#set net1/keep-san 1
sleep 1
sanboot --keep iscsi:${iscsi_portal}:::0:iqn.2000-01.com.synology:spacedock.ghost.e84d7761fd || goto menu