aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-03-30 17:36:20 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-03-30 17:36:20 +0200
commit2a17fbe88a0cc064248db4ce8939f0fbc357922d (patch)
tree7613ff8b5b9cea192c44b813e118f2a9a2a80bba
parent32c08acba3d938ec2fa4f9d2ff8160bbe05a20cb (diff)
downloadbusybox-w32-2a17fbe88a0cc064248db4ce8939f0fbc357922d.tar.gz
busybox-w32-2a17fbe88a0cc064248db4ce8939f0fbc357922d.tar.bz2
busybox-w32-2a17fbe88a0cc064248db4ce8939f0fbc357922d.zip
sulogin: use bb_error_msg instead of bb_info_msg; better message
Historic "System Maintenance Mode" message is a tiny bit cryptic. Let's say explicitly what we are doing: we are giving user a shell (presumably to do some maintenance in single-user mode). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--loginutils/sulogin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/sulogin.c b/loginutils/sulogin.c
index 33f078ae7..f32469551 100644
--- a/loginutils/sulogin.c
+++ b/loginutils/sulogin.c
@@ -69,17 +69,17 @@ int sulogin_main(int argc UNUSED_PARAM, char **argv)
69 ); 69 );
70 if (r < 0) { 70 if (r < 0) {
71 /* ^D, ^C, timeout, or read error */ 71 /* ^D, ^C, timeout, or read error */
72 bb_info_msg("Normal startup"); 72 bb_error_msg("normal startup");
73 return 0; 73 return 0;
74 } 74 }
75 if (r > 0) { 75 if (r > 0) {
76 break; 76 break;
77 } 77 }
78 bb_do_delay(LOGIN_FAIL_DELAY); 78 bb_do_delay(LOGIN_FAIL_DELAY);
79 bb_info_msg("Login incorrect"); 79 bb_error_msg("Login incorrect");
80 } 80 }
81 81
82 bb_info_msg("System Maintenance Mode"); 82 bb_error_msg("starting shell for system maintenance");
83 83
84 IF_SELINUX(renew_current_security_context()); 84 IF_SELINUX(renew_current_security_context());
85 85