Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
appnotes:autobootchainurl [2009/07/23 06:26] abo add link on how to embed a script |
appnotes:autobootchainurl [2009/11/05 15:46] (current) chaz6 Add note about hacking autoboot_exec() |
||
---|---|---|---|
Line 16: | Line 16: | ||
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. | ||
+ | |||
+ | Go into ''src/hci/commands/autoboot_cmd.c'' and find the line "''/* Can never return success by definition */''". Change the following line from "''return 1;''" to "''return 0;''". | ||
Now build your patched gPXE with the following [[:scripting|embedded script]]: | Now build your patched gPXE with the following [[:scripting|embedded script]]: |