diff --git a/data/system/boot/Bootscript b/data/system/boot/Bootscript index 8d1a46b090..7a32384d87 100644 --- a/data/system/boot/Bootscript +++ b/data/system/boot/Bootscript @@ -80,6 +80,16 @@ else runprog system/bin/clockconfig fi +# Create /tmp dir, and make sure it's empty + +TMPDIR=/boot/common/cache/tmp +if [ ! -d $TMPDIR ]; then + mkdir -f $TMPDIR + chmod a+rwx $TMPDIR +else + rm -rf $TMPDIR/* +fi + # Launch servers