Re: get gPXE to retry connections

"Miller, Shao" <[email protected]>
Newsgroups gmane.network.etherboot.user
Message-ID <[email protected]>
Good day Matthew,

In regards to your gPXE clients looping until they can successfully
boot, I believe that you could modify the gPXE source code to accomplish
this.  Take a look at gpxe/src/core/main.c.  Consider the following
diff:

diff --git a/src/core/main.c b/src/core/main.c
index 74452b7..464b1df 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -64,6 +64,7 @@ __asmcall int main ( void ) {
                printf ( " %s", feature->name );
        printf ( "\n" );

+matthew:
        /* Prompt for shell */
        if ( shell_banner() ) {
                /* User wants shell; just give them a shell */
@@ -86,6 +87,7 @@ __asmcall int main ( void ) {
                if ( shell_banner() )
                        shell();
        }
+goto matthew;

        shutdown ( SHUTDOWN_EXIT | shutdown_exit_flags );

--- END OF PATCH ---

Would this accomplish your goal?

- Shao Miller

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.