Add support for splash progress mode from kernel cmdline

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-12-30 21:28:30 +01:00
parent 6480850ee2
commit 5309ece2f9
4 changed files with 9 additions and 0 deletions
+3
View File
@@ -84,6 +84,9 @@ void conf_parse_cmdline(void)
if (string_compare(tok, "single") || string_compare(tok, "S"))
single = 1;
if (string_compare(tok, "splash"))
splash = 1;
}
fclose(fp);
+1
View File
@@ -55,6 +55,7 @@ int cfglevel = RUNLEVEL; /* Fallback if no configured runlevel */
int prevlevel = -1;
int rescue = 0; /* rescue mode from kernel cmdline */
int single = 0; /* single user mode from kernel cmdline */
int splash = 0; /* splash + progress enabled on kernel cmdline */
char *sdown = NULL;
char *network = NULL;
char *hostname = NULL;
+1
View File
@@ -98,6 +98,7 @@ extern int cfglevel;
extern int prevlevel;
extern int rescue;
extern int single;
extern int splash;
extern char *rcsd;
extern char *sdown;
extern char *network;
+4
View File
@@ -44,6 +44,10 @@ void log_init(int dbg)
loglevel = LOG_DEBUG;
else
loglevel = LOG_NOTICE;
/* User override from kernel cmdline */
if (splash)
silent = 0;
}
/* If we enabled terse mode at boot, restore to previous setting at shutdown */