mirror of
https://github.com/netbootxyz/netboot.xyz.git
synced 2026-01-23 02:34:26 +00:00
28 lines
565 B
Text
28 lines
565 B
Text
#!ipxe
|
|
|
|
:start
|
|
set version 1
|
|
echo netboot.xyz iPXE loader v${version}
|
|
|
|
:static
|
|
echo Please enter in the networking information of your Cloud Server:
|
|
imgfree
|
|
ifclose net0
|
|
echo -n IP: && read net0/ip
|
|
echo -n Subnet mask: && read net0/netmask
|
|
echo -n Gateway: && read net0/gateway
|
|
echo -n DNS: && read dns
|
|
ifopen net0
|
|
echo Attempting chainload of netboot.xyz...
|
|
goto start || goto failsafe
|
|
|
|
:start
|
|
chain http://cdn.netboot.xyz/menu.ipxe
|
|
goto boot
|
|
|
|
:failsafe
|
|
echo Attempt to load netboot.xyz failed... restarting...
|
|
goto start
|
|
|
|
:boot
|
|
sanboot --no-describe --drive 0x80
|