load a script from gpxe boot

Jean Spirat <[email protected]> Mon, 12 Oct 2009 09:48:23 +0200
Newsgroups gmane.network.etherboot.user
Message-ID <[email protected]>
hi,

 i saw that we have possibility to have scripts embeded in an image and 
i wanted to know if there is a way to include a script from a script.

  The goal would be to have a script like this:


#!gpxe
include http://mydomain.com/serverscript.php?mac=${net0/mac}


the php script would return a script with the ethernet setup like this:

#!gpxe
ifopen net0
set net0/ip 10.0.2.15
set net0/netmask 255.255.255.0
set net0/gateway 10.0.2.2
set net0/dns 10.0.2.3
kernel http://mydomain.com/getmykernel.php?mac=${net0/mac}
boot



 for me the goal is to set the network details in a script instead of 
creating a different image for each machine where dhcp is not possible. 
So i dont know if this is possible :)

regards,
Jean.



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference