Sha256: 8abdd67b33dd9a17cf8ff6357cdc926f92362d679a78acb7c7a0f748257b76c2
Contents?: true
Size: 872 Bytes
Versions: 11
Compression:
Stored size: 872 Bytes
Contents
#!ipxe # # Generic host template with interactive static IP configuration. Tokens # must be disabled in order to access templates via MAC addresses. # <% (0..32).each do |i| -%> :net<%= i %> isset ${net<%= i -%>/mac} || goto configure echo Found ${net<%= i -%>/mac} as net<%= i -%> on a ${net<%= i -%>/chip} goto net<%= i+1 %> <% end -%> :configure echo -n Interface (e.g. net0): && read interface iseq ${interface} n && goto reboot || iseq ${interface} N && goto reboot || ifopen ${interface} echo Please enter IPv4 details for ${interface} echo echo -n IP address: && read ${interface}/ip echo -n Subnet mask: && read ${interface}/netmask echo -n Default gateway: && read ${interface}/gateway echo -n DNS server: && read dns chain <%= bootdisk_chain_url %>${${interface}/mac} || goto reboot exit 0 :reboot echo Unable to continue, rebooting... sleep 30 exit 1
Version data entries
11 entries across 11 versions & 1 rubygems