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:
parent
40990465f1
commit
c1006ffdb7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user