|
|
b1e7a3 |
diff --git a/src/init.c b/src/init.c
|
|
|
b1e7a3 |
index d2bd121..dc82e28 100644
|
|
|
b1e7a3 |
--- a/src/init.c
|
|
|
b1e7a3 |
+++ b/src/init.c
|
|
|
b1e7a3 |
@@ -135,6 +135,7 @@ struct utmp utproto; /* Only used for sizeof(utproto.ut_id) */
|
|
|
b1e7a3 |
char *console_dev; /* Console device. */
|
|
|
b1e7a3 |
int pipe_fd = -1; /* /dev/initctl */
|
|
|
b1e7a3 |
int did_boot = 0; /* Did we already do BOOT* stuff? */
|
|
|
b1e7a3 |
+int quiet = 0; /* Should we be relatively silent? */
|
|
|
b1e7a3 |
int main(int, char **);
|
|
|
b1e7a3 |
|
|
|
b1e7a3 |
/* Used by re-exec part */
|
|
|
b1e7a3 |
@@ -1800,7 +1801,7 @@ int read_level(int arg)
|
|
|
b1e7a3 |
initlog(L_SY, "Trying to re-exec init");
|
|
|
b1e7a3 |
return 'U';
|
|
|
b1e7a3 |
default:
|
|
|
b1e7a3 |
- initlog(L_VB, "Switching to runlevel: %c", foo);
|
|
|
b1e7a3 |
+ if (!quiet) initlog(L_VB, "Switching to runlevel: %c", foo);
|
|
|
b1e7a3 |
}
|
|
|
b1e7a3 |
|
|
|
b1e7a3 |
if (foo == 'Q') {
|
|
|
b1e7a3 |
@@ -2598,7 +2599,7 @@ void init_main(void)
|
|
|
b1e7a3 |
/*
|
|
|
b1e7a3 |
* Say hello to the world
|
|
|
b1e7a3 |
*/
|
|
|
b1e7a3 |
- initlog(L_CO, bootmsg, "booting");
|
|
|
b1e7a3 |
+ if (!quiet) initlog(L_CO, bootmsg, "booting");
|
|
|
b1e7a3 |
|
|
|
b1e7a3 |
/*
|
|
|
b1e7a3 |
* See if we have to start an emergency shell.
|
|
|
b1e7a3 |
@@ -2859,6 +2860,8 @@ int main(int argc, char **argv)
|
|
|
b1e7a3 |
else if (!strcmp(argv[f], "-z")) {
|
|
|
b1e7a3 |
/* Ignore -z xxx */
|
|
|
b1e7a3 |
if (argv[f + 1]) f++;
|
|
|
b1e7a3 |
+ } else if (!strcmp(argv[f], "quiet")) {
|
|
|
b1e7a3 |
+ quiet = 1;
|
|
|
b1e7a3 |
} else if (strchr("0123456789sS", argv[f][0])
|
|
|
b1e7a3 |
&& strlen(argv[f]) == 1)
|
|
|
b1e7a3 |
dfl_level = argv[f][0];
|