2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 17:41:55 +00:00

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

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;