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:28 +0100 |
commit | 499d10952932cbcde28b307f31d9a92c93879d4c (patch) | |
tree | d093a80a4fadce3d3b8a3592c2fd4b419f910f07 /meta | |
parent | 7b53ae2c73d33f1f540b8092fc06dca2b6604830 (diff) | |
download | poky-499d10952932cbcde28b307f31d9a92c93879d4c.tar.gz |
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>
Diffstat (limited to 'meta')
-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 @@ | |||
7 | # Default-Stop: | 7 | # Default-Stop: |
8 | ### END INIT INFO | 8 | ### END INIT INFO |
9 | 9 | ||
10 | if [ ! -e /dev/fb0 ]; then | ||
11 | echo "Framebuffer /dev/fb0 not detected" | ||
12 | echo "Boot splashscreen disabled" | ||
13 | exit 0; | ||
14 | fi | ||
15 | |||
10 | read CMDLINE < /proc/cmdline | 16 | read CMDLINE < /proc/cmdline |
11 | for x in $CMDLINE; do | 17 | for x in $CMDLINE; do |
12 | case $x in | 18 | case $x in |