main: only force details if system has non-tty0 console

Right now we're unconditionally forcing details mode,
which is clearly wrong.
This commit is contained in:
Ray Strode 2012-04-09 14:27:44 -04:00
parent 270615b516
commit a3af9feed3

View file

@ -1909,8 +1909,6 @@ add_consoles_from_file (state_t *state,
size_t console_length;
char *console_device;
state->should_force_details = true;
console = strdup (remaining_command_line);
end = strpbrk (console, " \n\t\v");
@ -1924,6 +1922,13 @@ add_consoles_from_file (state_t *state,
break;
}
/* if we are in a weird case force details,
* so the user probably doesn't care about
* graphical splashes
*/
if (strcmp (console, "tty0") != 0)
state->should_force_details = true;
console_length = strlen (console);
asprintf (&console_device, "/dev/%s", console);