"Fossies" - the Fresh Open Source Software Archive

Member "fogproject-1.5.9/src/ipxe/src/ipxescript" (13 Sep 2020, 1035 Bytes) of package /linux/misc/fogproject-1.5.9.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "ipxescript": 1.5.8_vs_1.5.9.

    1 #!ipxe
    2 isset ${net0/mac} && ifopen net0 && dhcp net0 || goto dhcpnet1
    3 echo Received DHCP answer on interface net0 && goto proxycheck
    4 
    5 :dhcpnet1
    6 isset ${net1/mac} && ifopen net1 && dhcp net1 || goto dhcpnet2
    7 echo Received DHCP answer on interface net1 && goto proxycheck
    8 
    9 :dhcpnet2
   10 isset ${net2/mac} && ifopen net2 && dhcp net2 || goto dhcpall
   11 echo Received DHCP answer on interface net2 && goto proxycheck
   12 
   13 :dhcpall
   14 dhcp && goto proxycheck || goto dhcperror
   15 
   16 :dhcperror
   17 prompt --key s --timeout 10000 DHCP failed, hit 's' for the iPXE shell; reboot in 10 seconds && shell || reboot
   18 
   19 :proxycheck
   20 isset ${proxydhcp/next-server} && set next-server ${proxydhcp/next-server} || goto nextservercheck
   21 
   22 :nextservercheck
   23 isset ${next-server} && goto netboot || goto setserv
   24 
   25 :setserv
   26 echo -n Please enter tftp server: && read next-server && goto netboot || goto setserv
   27 
   28 :netboot
   29 chain tftp://${next-server}/default.ipxe ||
   30 prompt --key s --timeout 10000 Chainloading failed, hit 's' for the iPXE shell; reboot in 10 seconds && shell || reboot