This commit is contained in:
parent
972229c858
commit
9241b9a17f
@ -11,6 +11,8 @@ echo IP address is ${ip}
|
|||||||
|
|
||||||
#Provisioner uses the following pattern: /boot/{mac}
|
#Provisioner uses the following pattern: /boot/{mac}
|
||||||
set server http://${next-server}/boot/${mac:hexhyp}
|
set server http://${next-server}/boot/${mac:hexhyp}
|
||||||
|
echo Server is ${server}
|
||||||
|
sleep 5
|
||||||
|
|
||||||
# Make an HTTP HEAD request to check if the URL exists
|
# Make an HTTP HEAD request to check if the URL exists
|
||||||
http ${server} head || goto link_does_not_exist
|
http ${server} head || goto link_does_not_exist
|
||||||
@ -20,6 +22,7 @@ isset ${http_status} || goto link_does_not_exist
|
|||||||
iseq ${http_status} 200 && goto link_exists
|
iseq ${http_status} 200 && goto link_exists
|
||||||
|
|
||||||
:link_does_not_exist
|
:link_does_not_exist
|
||||||
|
sleep 5
|
||||||
echo Link ${server} does not exist, booting from next bios/uefi target
|
echo Link ${server} does not exist, booting from next bios/uefi target
|
||||||
exit
|
exit
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user