]> code.ossystems Code Review - openembedded-core.git/commitdiff
psplash: Initialize psplash only if a framebuffer exists
authorMark Hatle <mark.hatle@windriver.com>
Tue, 5 Sep 2017 02:10:32 +0000 (21:10 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 11 Sep 2017 16:30:10 +0000 (17:30 +0100)
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"

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>
meta/recipes-core/psplash/files/psplash-init

index 66c85e9335d8f16fd39a77caf74a62b1aa059e23..0bce1de5366eed29f4b604d94770df68cd8c774f 100755 (executable)
@@ -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