rc: restart plymouthd if it crashed

This commit is contained in:
Silvan Calarco 2011-07-02 20:55:49 +02:00
parent 0ec2ed0735
commit dd0ecf1203
2 changed files with 6 additions and 1 deletions

View File

@ -21,7 +21,6 @@ fi
progress=5 progress=5
$PLYMOUTH message --text=$"System booting, please wait..." $PLYMOUTH message --text=$"System booting, please wait..."
$PLYMOUTH update --status="$progress"
if [ ! -e /sys/kernel ]; then if [ ! -e /sys/kernel ]; then
echo -n "Mounting sys file system: " echo -n "Mounting sys file system: "

View File

@ -64,6 +64,12 @@ if [ "$runlevel" = "0" -o "$runlevel" = "6" ]; then
fi fi
else else
$PLYMOUTH message --text=$"Starting services..." $PLYMOUTH message --text=$"Starting services..."
$PLYMOUTH --ping || {
# workaround for plymouth crashing
$PLYMOUTHD --attach-to-session
$PLYMOUTH --show-splash
$PLYMOUTH message --text=$"Starting services..."
}
fi fi
allservicesnum=`ls -1 $rc_base/rc$runlevel.d/[S,K]* 2>/dev/null | wc -l` allservicesnum=`ls -1 $rc_base/rc$runlevel.d/[S,K]* 2>/dev/null | wc -l`