mirror of
https://github.com/xcat2/xNBA.git
synced 2025-02-19 12:04:32 +00:00
[main] Remove shell prompt when using an embedded image
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
7752541bb7
commit
202cf094eb
@ -78,24 +78,23 @@ __asmcall int main ( void ) {
|
||||
printf ( " %s", feature->name );
|
||||
printf ( "\n" );
|
||||
|
||||
/* Prompt for shell */
|
||||
if ( shell_banner() ) {
|
||||
/* User wants shell; just give them a shell */
|
||||
shell();
|
||||
/* Boot system */
|
||||
if ( ( image = first_image() ) != NULL ) {
|
||||
/* We have an embedded image; execute it */
|
||||
image_exec ( image );
|
||||
} else {
|
||||
/* User doesn't want shell; load and execute the first
|
||||
* image, or autoboot() if we have no images. If
|
||||
* booting fails for any reason, offer a second chance
|
||||
* to enter the shell for diagnostics.
|
||||
*/
|
||||
if ( ( image = first_image() ) != NULL ) {
|
||||
image_exec ( image );
|
||||
} else {
|
||||
autoboot();
|
||||
}
|
||||
|
||||
if ( shell_banner() )
|
||||
/* Prompt for shell */
|
||||
if ( shell_banner() ) {
|
||||
/* User wants shell; just give them a shell */
|
||||
shell();
|
||||
} else {
|
||||
/* Try booting. If booting fails, offer the
|
||||
* user another chance to enter the shell.
|
||||
*/
|
||||
autoboot();
|
||||
if ( shell_banner() )
|
||||
shell();
|
||||
}
|
||||
}
|
||||
|
||||
shutdown_exit();
|
||||
|
Loading…
x
Reference in New Issue
Block a user