]> code.ossystems Code Review - openembedded-core.git/commitdiff
sysvinit: rc: exit psplash correctly
authorChen Qi <Qi.Chen@windriver.com>
Wed, 27 Mar 2013 08:27:25 +0000 (16:27 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 27 Mar 2013 11:02:58 +0000 (11:02 +0000)
Previously, psplash didn't go away at system startup.
The root cause is that rc checks the file '/etc/init.d/xserver-nodm' to
determine whether to exit psplash manually. So even if xserver-nodm is not
linked into runlevel 3, psplash doesn't exit.

This patch fixes this problem by letting the rc script check the file
'/etc/rc${runlevel}.d/S??xserver-nodm' to determine whether to exit psplash
manually.

[YOCTO #3904]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/sysvinit/sysvinit/rc

index 44bc9bfd7468b4bd689a115f21794bb288f67ee5..655a0b067cb1c8adfc09ac0290f19da80838e588 100755 (executable)
@@ -171,7 +171,7 @@ startup() {
   fi
 
 #Uncomment to cause psplash to exit manually, otherwise it exits when it sees a VC switch
-if [ "x$runlevel" != "xS" ] && [ ! -x /etc/init.d/xserver-nodm ]; then
+if [ "x$runlevel" != "xS" ] && [ ! -x /etc/rc${runlevel}.d/S??xserver-nodm ]; then
     if type psplash-write >/dev/null 2>&1; then
         TMPDIR=/mnt/.psplash psplash-write "QUIT" || true
        umount /mnt/.psplash