From 034aaa6fb14bc74341bf7839fc7dd59d080f2083 Mon Sep 17 00:00:00 2001 From: Hector Palacios Date: Tue, 3 Jan 2017 10:55:52 +0100 Subject: [PATCH] psplash: fix init script to avoid running the app without fb This is a clone from the original psplash recipe init script but with the added fix: @@ -25,5 +25,7 @@ read rotation < /etc/rotation fi -/usr/bin/psplash --angle $rotation & +if [ -c "${FBDEV:-/dev/fb0}" ]; then + /usr/bin/psplash --angle $rotation & +fi which avoids running the application when there is no framebuffer in the system. This prevents the following error message during boot: Error opening /dev/fb0: No such file or directory Signed-off-by: Hector Palacios https://jira.digi.com/browse/DEL-2747 --- .../recipes-core/psplash/files/psplash-init | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 meta-digi-dey/recipes-core/psplash/files/psplash-init diff --git a/meta-digi-dey/recipes-core/psplash/files/psplash-init b/meta-digi-dey/recipes-core/psplash/files/psplash-init new file mode 100755 index 000000000..d3364d371 --- /dev/null +++ b/meta-digi-dey/recipes-core/psplash/files/psplash-init @@ -0,0 +1,31 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: psplash +# Required-Start: +# Required-Stop: +# Default-Start: S +# Default-Stop: +### END INIT INFO + +read CMDLINE < /proc/cmdline +for x in $CMDLINE; do + case $x in + psplash=false) + echo "Boot splashscreen disabled" + exit 0; + ;; + esac +done + +export TMPDIR=/mnt/.psplash +mount tmpfs -t tmpfs $TMPDIR -o,size=40k + +rotation=0 +if [ -e /etc/rotation ]; then + read rotation < /etc/rotation +fi + +if [ -c "${FBDEV:-/dev/fb0}" ]; then + /usr/bin/psplash --angle $rotation & +fi +