Re: load a script from gpxe boot
Jean Spirat <[email protected]> Wed, 14 Oct 2009 09:58:39 +0200
| Newsgroups | gmane.network.etherboot.user |
|---|---|
| Message-ID | <[email protected]> |
Stefan Hajnoczi a écrit : > On Mon, Oct 12, 2009 at 8:48 AM, Jean Spirat <[email protected]> wrote: > >> 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. >> > > Yes this is possible. Use the 'chain' command in your embedded script: > #!gpxe > dhcp net0 > chain http://mydomain.com/serverscript.php?mac=${net0/mac} > > A gPXE script is an image that can be loaded/executed, just like > bzImage, multiboot, and the other supported image formats. > > Stefan > <slap in frontend> thanks a lot, i just realized seeing the 'dhcp' line that i wanted to have access to http to load the network configuration ... seems i would need to have a network configured BEFORE doing http access ... so thanks a lot for the answer that just enlightened me without slapping me about the stupid goal i had in my tired mind :) i guess i can embed a generic ip used just for this in the gpxe image and then load a new config from a script that will change the ip..humm got to try this. 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