chiark / gitweb /
update TODO
[elogind.git] / src / util.c
index fada69cf1a981893f85998ac2da465865a2d0074..5e101e44178fcee9a73d1e080562bf257ef454a0 100644 (file)
@@ -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",