From a12ba3994d0fa1e4237e40e9e3f06f0708a2ba07 Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Thu, 24 Dec 2020 10:31:03 -0500 Subject: 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 Signed-off-by: Richard Purdie --- meta/recipes-core/psplash/files/psplash-init | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/recipes-core/psplash') diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init index f58e043733..e0f80bcdc0 100755 --- a/meta/recipes-core/psplash/files/psplash-init +++ b/meta/recipes-core/psplash/files/psplash-init @@ -7,6 +7,9 @@ # 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" @@ -23,7 +26,6 @@ for x in $CMDLINE; do esac done -export PSPLASH_FIFO_DIR=/mnt/.psplash [ -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 -- cgit v1.2.3-54-g00ecf