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:
Joachim Wiberg committed 2021-02-14 20:11:45 +01:00
1 parent 35e4e0d073
commit 70ca64a392
5 files changed
+74 -19

No files matched your search

+11 -1
View File
@@ -34,6 +34,14 @@
#include <lite/lite.h>
#include "log.h"
#define PROGRESS_DEFAULT PROGRESS_MODERN
typedef enum {
PROGRESS_SILENT,
PROGRESS_CLASSIC,
PROGRESS_MODERN,
} pstyle_t;
#ifndef HAVE_GETFSENT
struct fstab {
char *fs_spec; /* block device name */
@@ -55,7 +63,9 @@ void console_init (void);
ssize_t cprintf (const char *fmt, ...);
char *strip_line (char *line);
void show_progress (int onoff);
void enable_progress (int onoff);
void show_progress (pstyle_t style);
int getty (char *tty, speed_t speed, char *term, char *user);
int sh (char *tty);