Differences
This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
appnotes:autobootchainurl [2009/07/23 06:18] abo created |
appnotes:autobootchainurl [2009/07/23 06:26] abo add link on how to embed a script |
||
---|---|---|---|
Line 17: | Line 17: | ||
Go into ''src/usr/autoboot.c'' and find the ''netboot()'' function. In that function there is a line "''route();''". After that line, add "''return 0;''". This causes autoboot to return when it has obtained a DHCP lease so that the next command is run. | Go into ''src/usr/autoboot.c'' and find the ''netboot()'' function. In that function there is a line "''route();''". After that line, add "''return 0;''". This causes autoboot to return when it has obtained a DHCP lease so that the next command is run. | ||
- | Now build your patched gPXE with the following embedded script: | + | Now build your patched gPXE with the following [[:scripting|embedded script]]: |
<code> | <code> | ||
Line 28: | Line 28: | ||
This method is of course a hack which will likely be obsoleted by scripting language improvements in the future. | This method is of course a hack which will likely be obsoleted by scripting language improvements in the future. | ||
+ |