diff options
author | Michael Brown <mcb30@etherboot.org> | 2008-02-11 17:51:44 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2008-02-11 17:51:44 +0000 |
commit | c1006ffdb713abd9b9a39b42d74a8a9f77b7b62b (patch) | |
tree | 9f5589033b0d378adeba1eb0dc8ee619c48312ab | |
parent | 40990465f1cc38be6efa03b74eaad2a5ca03e144 (diff) | |
download | ipxe-c1006ffdb713abd9b9a39b42d74a8a9f77b7b62b.tar.gz |
If no shell was requested via Ctrl-B, exit immediately if boot fails.
-rw-r--r-- | src/core/main.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/core/main.c b/src/core/main.c index 88fbb579..3295feaf 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -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; |