From: Mark Hatle Date: Tue, 5 Sep 2017 02:10:32 +0000 (-0500) Subject: psplash: Initialize psplash only if a framebuffer exists X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~20101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2348dda6b8a86352e72ef41b24df3a19e8bc98ce;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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" Signed-off-by: Aws Ismail Signed-off-by: Mark Hatle Signed-off-by: Ross Burton --- diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init index 66c85e9335d..0bce1de5366 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