[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7607/8267] psplash: Initialize psplash only if a framebuffer exists



commit 499d10952932cbcde28b307f31d9a92c93879d4c
Author: Mark Hatle <mark hatle windriver com>
Date:   Mon Sep 4 21:10:32 2017 -0500

    psplash: Initialize psplash only if a framebuffer exists
    
    psplash-init exits if there is no framebuffer device detected.
    This is done to avoid the following error message from
    occurring when booting up:
    
    "Error opening /dev/fb0: No such file or directory"
    
    (From OE-Core rev: 2348dda6b8a86352e72ef41b24df3a19e8bc98ce)
    
    Signed-off-by: Aws Ismail <aws ismail windriver com>
    Signed-off-by: Mark Hatle <mark hatle windriver com>
    Signed-off-by: Ross Burton <ross burton intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 meta/recipes-core/psplash/files/psplash-init |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init
index 66c85e9..0bce1de 100755
--- a/meta/recipes-core/psplash/files/psplash-init
+++ b/meta/recipes-core/psplash/files/psplash-init
@@ -7,6 +7,12 @@
 # Default-Stop:
 ### END INIT INFO
 
+if [ ! -e /dev/fb0 ]; then
+    echo "Framebuffer /dev/fb0 not detected"
+    echo "Boot splashscreen disabled"
+    exit 0;
+fi
+
 read CMDLINE < /proc/cmdline
 for x in $CMDLINE; do
         case $x in


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]