From dd0ecf1203936e842b1f1d74c93edfa9dcdaa35e Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 2 Jul 2011 20:55:49 +0200 Subject: [PATCH] rc: restart plymouthd if it crashed --- etc/rc.d/init.d/mountproc | 1 - etc/rc.d/init.d/rc | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/etc/rc.d/init.d/mountproc b/etc/rc.d/init.d/mountproc index 36a8d13..7329f59 100755 --- a/etc/rc.d/init.d/mountproc +++ b/etc/rc.d/init.d/mountproc @@ -21,7 +21,6 @@ fi progress=5 $PLYMOUTH message --text=$"System booting, please wait..." -$PLYMOUTH update --status="$progress" if [ ! -e /sys/kernel ]; then echo -n "Mounting sys file system: " diff --git a/etc/rc.d/init.d/rc b/etc/rc.d/init.d/rc index e8c0380..183507d 100755 --- a/etc/rc.d/init.d/rc +++ b/etc/rc.d/init.d/rc @@ -64,6 +64,12 @@ if [ "$runlevel" = "0" -o "$runlevel" = "6" ]; then fi else $PLYMOUTH message --text=$"Starting services..." + $PLYMOUTH --ping || { + # workaround for plymouth crashing + $PLYMOUTHD --attach-to-session + $PLYMOUTH --show-splash + $PLYMOUTH message --text=$"Starting services..." + } fi allservicesnum=`ls -1 $rc_base/rc$runlevel.d/[S,K]* 2>/dev/null | wc -l`