david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

If no shell was requested via Ctrl-B, exit immediately if boot fails.

This commit is contained in:
Michael Brown 2008-02-11 17:51:44 +00:00
parent 40990465f1
commit c1006ffdb7
1 changed files with 3 additions and 6 deletions

View File

@ -29,14 +29,11 @@ __cdecl int main ( void ) {
initialise();
startup();
/* Try autobooting if we're not going straight to the shell */
if ( ! shell_banner() ) {
if ( shell_banner() )
shell();
else
autoboot();
}
/* Autobooting failed or the user wanted the shell */
shell();
shutdown();
return 0;