소스 검색

If no shell was requested via Ctrl-B, exit immediately if boot fails.

tags/v0.9.3
Michael Brown 18 년 전
부모
커밋
c1006ffdb7
1개의 변경된 파일3개의 추가작업 그리고 6개의 파일을 삭제
  1. 3
    6
      src/core/main.c

+ 3
- 6
src/core/main.c 파일 보기

29
 	initialise();
29
 	initialise();
30
 	startup();
30
 	startup();
31
 
31
 
32
-	/* Try autobooting if we're not going straight to the shell */
33
-	if ( ! shell_banner() ) {
32
+	if ( shell_banner() )
33
+		shell();
34
+	else
34
 		autoboot();
35
 		autoboot();
35
-	}
36
 	
36
 	
37
-	/* Autobooting failed or the user wanted the shell */
38
-	shell();
39
-
40
 	shutdown();
37
 	shutdown();
41
 
38
 
42
 	return 0;
39
 	return 0;

Loading…
취소
저장