mirror of
https://github.com/troglobit/finit.git
synced 2026-10-17 10:49:34 +00:00
New cmdline options to control debug and progress/status
Modeled after systemd.show_status, currently without the 'auto' setting. - finit.debug[=bool] - finit.show_status[=bool] - finit.status_style[=old,classic,new,modern] Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
35e4e0d073
commit
70ca64a392
5 files changed
+74
-19
No files matched your search
+5
-5
@@ -307,11 +307,8 @@ static void finalize(void)
|
||||
plugin_run_hooks(HOOK_SYSTEM_UP);
|
||||
service_step_all(SVC_TYPE_ANY);
|
||||
|
||||
/* Enable silent mode before starting TTYs */
|
||||
if (!debug) {
|
||||
_d("Going silent ...");
|
||||
show_progress(0);
|
||||
}
|
||||
/* Disable progress output at normal runtime */
|
||||
enable_progress(0);
|
||||
|
||||
/* Delayed start of TTYs at bootstrap */
|
||||
_d("Launching all getty services ...");
|
||||
@@ -410,6 +407,9 @@ int main(int argc, char *argv[])
|
||||
if (!rescue && !debug)
|
||||
screen_init();
|
||||
|
||||
/* Allow progress, if enabled */
|
||||
enable_progress(1);
|
||||
|
||||
/*
|
||||
* In case of emergency.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user