summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/psplash
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2020-12-24 10:31:03 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-05 13:48:41 +0000
commita12ba3994d0fa1e4237e40e9e3f06f0708a2ba07 (patch)
tree4262ddef974f46e4252da44603d44f6785d339bd /meta/recipes-core/psplash
parent5aa004f101da301c9ce679acaad958f9bb2d90ee (diff)
downloadpoky-a12ba3994d0fa1e4237e40e9e3f06f0708a2ba07.tar.gz
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>
Diffstat (limited to 'meta/recipes-core/psplash')
-rwxr-xr-xmeta/recipes-core/psplash/files/psplash-init4
1 files changed, 3 insertions, 1 deletions
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 @@
7# Default-Stop: 7# Default-Stop:
8### END INIT INFO 8### END INIT INFO
9 9
10. /etc/default/rcS
11export PSPLASH_FIFO_DIR
12
10if [ ! -e /dev/fb0 ]; then 13if [ ! -e /dev/fb0 ]; then
11 echo "Framebuffer /dev/fb0 not detected" 14 echo "Framebuffer /dev/fb0 not detected"
12 echo "Boot splashscreen disabled" 15 echo "Boot splashscreen disabled"
@@ -23,7 +26,6 @@ for x in $CMDLINE; do
23 esac 26 esac
24done 27done
25 28
26export PSPLASH_FIFO_DIR=/mnt/.psplash
27[ -d $PSPLASH_FIFO_DIR ] || mkdir -p $PSPLASH_FIFO_DIR 29[ -d $PSPLASH_FIFO_DIR ] || mkdir -p $PSPLASH_FIFO_DIR
28if ! mountpoint -q $PSPLASH_FIFO_DIR; then 30if ! mountpoint -q $PSPLASH_FIFO_DIR; then
29 mount tmpfs -t tmpfs $PSPLASH_FIFO_DIR -o,size=40k 31 mount tmpfs -t tmpfs $PSPLASH_FIFO_DIR -o,size=40k