summaryrefslogtreecommitdiff
path: root/poky/meta/recipes-core/psplash/files/psplash-init
diff options
context:
space:
mode:
Diffstat (limited to 'poky/meta/recipes-core/psplash/files/psplash-init')
-rwxr-xr-xpoky/meta/recipes-core/psplash/files/psplash-init5
1 files changed, 4 insertions, 1 deletions
diff --git a/poky/meta/recipes-core/psplash/files/psplash-init b/poky/meta/recipes-core/psplash/files/psplash-init
index 0bce1de53..dcb751907 100755
--- a/poky/meta/recipes-core/psplash/files/psplash-init
+++ b/poky/meta/recipes-core/psplash/files/psplash-init
@@ -24,7 +24,10 @@ for x in $CMDLINE; do
done
export TMPDIR=/mnt/.psplash
-mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+[ -d $TMPDIR ] || mkdir -p $TMPDIR
+if [ ! mountpoint -q $TMPDIR ]; then
+ mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+fi
rotation=0
if [ -e /etc/rotation ]; then