Browse Source

Attempt HTTPS first, and then try HTTP if Cloudfront is acting weird

Antony Messerli 9 years ago
parent
commit
b46873cb5d
2 changed files with 6 additions and 4 deletions
  1. 3 2
      ipxe/disks/netboot.xyz-dhcp
  2. 3 2
      ipxe/disks/netboot.xyz-static

+ 3 - 2
ipxe/disks/netboot.xyz-dhcp

@@ -1,7 +1,7 @@
 #!ipxe
 
 :start
-set version 1.01
+set version 1.02
 echo netboot.xyz iPXE loader v${version}
 goto dhcp
 
@@ -22,7 +22,8 @@ echo Attempting chainload of netboot.xyz...
 goto menu || goto failsafe
 
 :menu
-chain --autofree https://boot.netboot.xyz/menu.ipxe
+chain --autofree https://boot.netboot.xyz/menu.ipxe || echo HTTPS appears to have failed... attemping HTTP
+chain --autofree http://boot.netboot.xyz/menu.ipxe || echo HTTP has failed, localbooting...
 goto boot
 
 :failsafe

+ 3 - 2
ipxe/disks/netboot.xyz-static

@@ -1,7 +1,7 @@
 #!ipxe
 
 :start
-set version 1.01
+set version 1.02
 echo netboot.xyz iPXE loader v${version}
 goto static
 
@@ -18,7 +18,8 @@ echo Attempting chainload of netboot.xyz...
 goto menu || goto failsafe
 
 :menu
-chain --autofree https://boot.netboot.xyz/menu.ipxe
+chain --autofree https://boot.netboot.xyz/menu.ipxe || echo HTTPS appears to have failed... attemping HTTP
+chain --autofree http://boot.netboot.xyz/menu.ipxe || echo HTTP has failed, localbooting...
 goto boot
 
 :failsafe