summaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-30 02:21:48 +0200
committerLennart Poettering <lennart@poettering.net>2011-03-30 02:21:48 +0200
commit6faa11140bf776cdaeb8d22d01816e6e48296971 (patch)
treecb3857a75f2f40727d026aecfa00883505758f61 /src/util.c
parent871c44a747a8bf4465cbfda445216e9ac66d4a40 (diff)
status: show status messages unconditionally if plymouth is around
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index fada69cf1a..5e101e4417 100644
--- a/src/util.c
+++ b/src/util.c
@@ -4188,6 +4188,10 @@ bool nulstr_contains(const char*nulstr, const char *needle) {
return false;
}
+bool plymouth_running(void) {
+ return access("/run/initramfs/plymouth", F_OK) >= 0;
+}
+
static const char *const ioprio_class_table[] = {
[IOPRIO_CLASS_NONE] = "none",
[IOPRIO_CLASS_RT] = "realtime",