From 9f7749ba620af5e9a063df93cd5ccceab8316822 Mon Sep 17 00:00:00 2001 From: Alexey Gladkov Date: Mon, 30 Oct 2023 17:55:52 +0100 Subject: [PATCH] feature/plymouth: try to wait plymouthd Signed-off-by: Alexey Gladkov --- features/plymouth/data/etc/rc.d/init.d/plymouth | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/features/plymouth/data/etc/rc.d/init.d/plymouth b/features/plymouth/data/etc/rc.d/init.d/plymouth index f465165f..696a1cb2 100755 --- a/features/plymouth/data/etc/rc.d/init.d/plymouth +++ b/features/plymouth/data/etc/rc.d/init.d/plymouth @@ -38,6 +38,12 @@ start() { omit_pid "$(cat "$pid")" show_splash & + + timeout=40 + while [ "$timeout" -gt 0 ] && ! plymouth --ping 2>/dev/null; do + sleep 1 + timeout=$(($timeout - 1)) + done } stop() { -- 2.33.8