mirror of https://github.com/ipxe/ipxe.git
If no shell was requested via Ctrl-B, exit immediately if boot fails.
parent
40990465f1
commit
c1006ffdb7
|
@ -29,13 +29,10 @@ __cdecl int main ( void ) {
|
||||||
initialise();
|
initialise();
|
||||||
startup();
|
startup();
|
||||||
|
|
||||||
/* Try autobooting if we're not going straight to the shell */
|
if ( shell_banner() )
|
||||||
if ( ! shell_banner() ) {
|
|
||||||
autoboot();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Autobooting failed or the user wanted the shell */
|
|
||||||
shell();
|
shell();
|
||||||
|
else
|
||||||
|
autoboot();
|
||||||
|
|
||||||
shutdown();
|
shutdown();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue