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 1000B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. int main ( void ) {
  24. initialise();
  25. startup();
  26. /* Try autobooting if we're not going straight to the shell */
  27. if ( ! shell_banner() ) {
  28. autoboot();
  29. }
  30. /* Autobooting failed or the user wanted the shell */
  31. shell();
  32. shutdown();
  33. return 0;
  34. }