rc: create /var/spool/gdm/force-display-on-active-vt in runlevel 5 if plymouth is running to support smooth transition

This commit is contained in:
Silvan Calarco 2011-11-29 01:34:02 +01:00
parent 5a1ec81085
commit f722081e20
2 changed files with 5 additions and 1 deletions

View File

@ -62,6 +62,7 @@ install-dirs:
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/run $(INSTALL_DIR) $(DESTDIR)$(localstatedir)/run
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/log $(INSTALL_DIR) $(DESTDIR)$(localstatedir)/log
$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/modules.d/ $(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/modules.d/
$(INSTALL_DIR) $(DESTDIR)/var/spool/gdm
install-files: install-files:
touch $(DESTDIR)$(localstatedir)/run/utmp touch $(DESTDIR)$(localstatedir)/run/utmp

View File

@ -103,8 +103,9 @@ if [ "$previous" != "N" ]; then
fi fi
fi fi
echo -e $"Starting runlevel $runlevel services...""\r"
if [ "$multithread" = "1" ]; then if [ "$multithread" = "1" ]; then
/bin/echo -e $"Starting runlevel $runlevel services...""\r" >&2
# recreate multithreaded dependencies # recreate multithreaded dependencies
depinit >/dev/null 2>&1 depinit >/dev/null 2>&1
@ -142,4 +143,6 @@ fi
if [ ! "$runlevel" = "5" ]; then if [ ! "$runlevel" = "5" ]; then
chvt 1 chvt 1
$PLYMOUTH quit $PLYMOUTH quit
else
[ -e /run/plymouth/pid ] && touch /var/spool/gdm/force-display-on-active-vt
fi fi