Skip to content

Commit

Permalink
If no shell was requested via Ctrl-B, exit immediately if boot fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Feb 11, 2008
1 parent 4099046 commit c1006ff
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/core/main.c
Expand Up @@ -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;
Expand Down

0 comments on commit c1006ff

Please sign in to comment.