You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.c 888B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**************************************************************************
  2. gPXE - Network Bootstrap Program
  3. Literature dealing with the network protocols:
  4. ARP - RFC826
  5. RARP - RFC903
  6. UDP - RFC768
  7. BOOTP - RFC951, RFC2132 (vendor extensions)
  8. DHCP - RFC2131, RFC2132 (options)
  9. TFTP - RFC1350, RFC2347 (options), RFC2348 (blocksize), RFC2349 (tsize)
  10. RPC - RFC1831, RFC1832 (XDR), RFC1833 (rpcbind/portmapper)
  11. NFS - RFC1094, RFC1813 (v3, useful for clarifications, not implemented)
  12. IGMP - RFC1112
  13. **************************************************************************/
  14. #include <gpxe/init.h>
  15. #include <gpxe/shell.h>
  16. #include <gpxe/shell_banner.h>
  17. #include <usr/autoboot.h>
  18. /**
  19. * Main entry point
  20. *
  21. * @ret rc Return status code
  22. */
  23. __cdecl int main ( void ) {
  24. initialise();
  25. startup();
  26. if ( shell_banner() )
  27. shell();
  28. else
  29. autoboot();
  30. shutdown();
  31. return 0;
  32. }