summaryrefslogtreecommitdiff
path: root/src/shared/util.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2015-03-16 18:29:26 +0100
committerTom Gundersen <teg@jklm.no>2015-03-16 18:30:20 +0100
commita88c8750b3f0618036782b31a184c27c80bcb38d (patch)
tree45622697fede354c70fd4e00832e1c145e588f25 /src/shared/util.c
parent031886edfc6e96ab778c241035a8d00fb0de99d3 (diff)
shared - reinstate plymouth_running()
This will be used by fsckd. This reverts part of 031886edfc6e96ab778c241035a8d00fb0de99d3.
Diffstat (limited to 'src/shared/util.c')
-rw-r--r--src/shared/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/util.c b/src/shared/util.c
index 3f3ca90f5d..5cbbe8fb7d 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -4228,6 +4228,10 @@ bool nulstr_contains(const char*nulstr, const char *needle) {
return false;
}
+bool plymouth_running(void) {
+ return access("/run/plymouth/pid", F_OK) >= 0;
+}
+
char* strshorten(char *s, size_t l) {
assert(s);