ipxescript (fogproject-1.5.8) | : | ipxescript (fogproject-1.5.9) | ||
---|---|---|---|---|
#!ipxe | #!ipxe | |||
isset ${net0/mac} && ifopen net0 && dhcp net0 || goto dhcpnet1 | isset ${net0/mac} && ifopen net0 && dhcp net0 || goto dhcpnet1 | |||
echo Received DHCP answer on interface net0 && goto proxycheck | echo Received DHCP answer on interface net0 && goto proxycheck | |||
:dhcpnet1 | :dhcpnet1 | |||
isset ${net1/mac} && ifopen net1 && dhcp net1 || goto dhcpnet2 | isset ${net1/mac} && ifopen net1 && dhcp net1 || goto dhcpnet2 | |||
echo Received DHCP answer on interface net1 && goto proxycheck | echo Received DHCP answer on interface net1 && goto proxycheck | |||
:dhcpnet2 | :dhcpnet2 | |||
isset ${net2/mac} && ifopen net2 && dhcp net2 || goto dhcpall | isset ${net2/mac} && ifopen net2 && dhcp net2 || goto dhcpall | |||
echo Received DHCP anser on infterface net2 && goto proxycheck | echo Received DHCP answer on interface net2 && goto proxycheck | |||
:dhcpall | :dhcpall | |||
dhcp && goto proxycheck || goto dhcperror | dhcp && goto proxycheck || goto dhcperror | |||
:dhcperror | :dhcperror | |||
prompt --key s --timeout 10000 DHCP failed, hit 's' for the iPXE shell; reboot i n 10 seconds && shell || reboot | prompt --key s --timeout 10000 DHCP failed, hit 's' for the iPXE shell; reboot i n 10 seconds && shell || reboot | |||
:proxycheck | :proxycheck | |||
isset ${proxydhcp/next-server} && set next-server ${proxydhcp/next-server} || go to nextservercheck | isset ${proxydhcp/next-server} && set next-server ${proxydhcp/next-server} || go to nextservercheck | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |