rc: restart plymouthd if it crashed
This commit is contained in:
parent
0ec2ed0735
commit
dd0ecf1203
@ -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: "
|
||||||
|
@ -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`
|
||||||
|
Loading…
Reference in New Issue
Block a user