summaryrefslogtreecommitdiffstats
path: root/external/poky/meta/recipes-core/psplash/files/psplash-init
diff options
context:
space:
mode:
Diffstat (limited to 'external/poky/meta/recipes-core/psplash/files/psplash-init')
-rwxr-xr-xexternal/poky/meta/recipes-core/psplash/files/psplash-init7
1 files changed, 5 insertions, 2 deletions
diff --git a/external/poky/meta/recipes-core/psplash/files/psplash-init b/external/poky/meta/recipes-core/psplash/files/psplash-init
index 0bce1de5..f58e0437 100755
--- a/external/poky/meta/recipes-core/psplash/files/psplash-init
+++ b/external/poky/meta/recipes-core/psplash/files/psplash-init
@@ -23,8 +23,11 @@ for x in $CMDLINE; do
esac
done
-export TMPDIR=/mnt/.psplash
-mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+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
+fi
rotation=0
if [ -e /etc/rotation ]; then