diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2017-09-04 21:10:32 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-11 17:30:10 +0100 |
commit | 2348dda6b8a86352e72ef41b24df3a19e8bc98ce (patch) | |
tree | baa563011063ff9925ae0f865be15fa176006397 | |
parent | 32c9b3d99a0c27f6736696082b9da812a8464bf8 (diff) | |
download | openembedded-core-2348dda6b8a86352e72ef41b24df3a19e8bc98ce.tar.gz openembedded-core-2348dda6b8a86352e72ef41b24df3a19e8bc98ce.tar.bz2 openembedded-core-2348dda6b8a86352e72ef41b24df3a19e8bc98ce.zip |
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 <aws.ismail@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rwxr-xr-x | 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 66c85e9335..0bce1de536 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 |