2005-03-08 19:53:11 +01:00
|
|
|
/**************************************************************************
|
2007-07-04 00:09:56 +02:00
|
|
|
gPXE - Network Bootstrap Program
|
2005-03-08 19:53:11 +01:00
|
|
|
|
|
|
|
Literature dealing with the network protocols:
|
|
|
|
ARP - RFC826
|
|
|
|
RARP - RFC903
|
|
|
|
UDP - RFC768
|
|
|
|
BOOTP - RFC951, RFC2132 (vendor extensions)
|
|
|
|
DHCP - RFC2131, RFC2132 (options)
|
|
|
|
TFTP - RFC1350, RFC2347 (options), RFC2348 (blocksize), RFC2349 (tsize)
|
|
|
|
RPC - RFC1831, RFC1832 (XDR), RFC1833 (rpcbind/portmapper)
|
|
|
|
NFS - RFC1094, RFC1813 (v3, useful for clarifications, not implemented)
|
|
|
|
IGMP - RFC1112
|
|
|
|
|
|
|
|
**************************************************************************/
|
|
|
|
|
2006-04-30 03:08:52 +02:00
|
|
|
#include <gpxe/init.h>
|
2006-12-20 01:26:01 +01:00
|
|
|
#include <gpxe/shell.h>
|
|
|
|
#include <gpxe/shell_banner.h>
|
2007-01-10 03:03:20 +01:00
|
|
|
#include <usr/autoboot.h>
|
2006-06-01 17:53:05 +02:00
|
|
|
|
2007-01-14 01:16:41 +01:00
|
|
|
/**
|
|
|
|
* Main entry point
|
|
|
|
*
|
|
|
|
* @ret rc Return status code
|
|
|
|
*/
|
2007-07-29 01:17:25 +02:00
|
|
|
__cdecl int main ( void ) {
|
2005-03-08 19:53:11 +01:00
|
|
|
|
2007-07-04 00:09:56 +02:00
|
|
|
initialise();
|
2007-01-14 01:16:41 +01:00
|
|
|
startup();
|
2006-05-02 23:10:45 +02:00
|
|
|
|
2008-02-11 18:51:44 +01:00
|
|
|
if ( shell_banner() )
|
|
|
|
shell();
|
|
|
|
else
|
2006-12-20 08:04:08 +01:00
|
|
|
autoboot();
|
|
|
|
|
2007-01-14 01:16:41 +01:00
|
|
|
shutdown();
|
2005-04-12 18:43:18 +02:00
|
|
|
|
2007-01-14 01:16:41 +01:00
|
|
|
return 0;
|
2005-03-08 19:53:11 +01:00
|
|
|
}
|