From b05691fb3bfb33695915252befee16078f622e29 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 8 Mar 2012 15:31:01 +0100 Subject: [PATCH] rc: manage force-display-on-active-vt before starting services, not after, due to multithread init --- etc/rc.d/init.d/rc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/init.d/rc b/etc/rc.d/init.d/rc index 56ada9b..eadccd2 100755 --- a/etc/rc.d/init.d/rc +++ b/etc/rc.d/init.d/rc @@ -113,6 +113,12 @@ fi echo -e $"Starting runlevel $runlevel services...""\r" +if [ "$runlevel" == "5" -a "$previous" == "N" ]; then + [ -e /run/plymouth/pid ] && touch /var/spool/gdm/force-display-on-active-vt +else + rm -f /var/spool/gdm/force-display-on-active-vt +fi + if [ "$multithread" = "1" ]; then # recreate multithreaded dependencies @@ -161,7 +167,5 @@ else # FIXME: when plymouth crashes and is restarted above the ENTER key X restart bug # comes back if not quit $PLYMOUTH quit - elif [ "$previous" == "N" ]; then - [ -e /run/plymouth/pid ] && touch /var/spool/gdm/force-display-on-active-vt fi fi