Allow debug mode to override terse mode

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2015-12-01 22:36:16 +01:00
parent fa3a97366c
commit a5c5a5c644
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -266,6 +266,10 @@ static void cb(uev_t *w, void *UNUSED(arg), int UNUSED(events))
case INIT_CMD_DEBUG:
debug = !debug;
if (debug)
verbose = 1;
else
verbose = quiet ? 0 : VERBOSE_MODE;
break;
case INIT_CMD_RELOAD: /* 'init q' and 'initctl reload' */
+1 -1
View File
@@ -218,7 +218,7 @@ int main(int argc, char* argv[])
tty_runlevel(runlevel);
/* Disable verbose mode, if selected */
if (quiet)
if (quiet && !debug)
verbose = 0;
/* Start new initctl API responder */