Files
poky/meta/recipes-core/psplash/files/psplash-init
Trevor Woerner a12ba3994d PSPLASH_FIFO_DIR: refactor
Add an entry for the psplash fifo directory to /etc/default/rcS and have the
pieces of code that need it source it from there rather than duplicating the
definition in multiple places throughout the code.

(From OE-Core rev: dc4065b6f101e6418301e0cb8d73ae3a1b2bdfb2)

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-05 13:48:41 +00:00

775 B
Executable File

#!/bin/sh

BEGIN INIT INFO

Provides: psplash

Required-Start:

Required-Stop:

Default-Start: S

Default-Stop:

END INIT INFO

. /etc/default/rcS export PSPLASH_FIFO_DIR

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 psplash=false) echo "Boot splashscreen disabled" exit 0; ;; esac done

[ -d $PSPLASH_FIFO_DIR ] || mkdir -p $PSPLASH_FIFO_DIR if ! mountpoint -q $PSPLASH_FIFO_DIR; then mount tmpfs -t tmpfs $PSPLASH_FIFO_DIR -o,size=40k fi

rotation=0 if [ -e /etc/rotation ]; then read rotation < /etc/rotation fi

/usr/bin/psplash --angle $rotation &