]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: only force details if system has non-tty0 console
authorRay Strode <rstrode@redhat.com>
Mon, 9 Apr 2012 18:27:44 +0000 (14:27 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 9 Apr 2012 18:27:44 +0000 (14:27 -0400)
Right now we're unconditionally forcing details mode,
which is clearly wrong.

src/main.c

index 840ef08e6a2271632ea8df539fd05d7790af253a..27aabd3b44f9e676322af3e3be6f72f234b0dec6 100644 (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);