If no shell was requested via Ctrl-B, exit immediately if boot fails.
authorMichael Brown <mcb30@etherboot.org>
Mon, 11 Feb 2008 17:51:44 +0000 (17:51 +0000)
committerMichael Brown <mcb30@etherboot.org>
Mon, 11 Feb 2008 17:51:44 +0000 (17:51 +0000)
src/core/main.c

index 88fbb57..3295fea 100644 (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;