From 51e29291d2216f124d5332ca7aec7531413c10cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Thu, 25 Feb 2010 10:40:58 +0000 Subject: [PATCH] * We now create the /tmp directory if it does not exist yet. * Also, we now empty it if it already exists. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35614 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- data/system/boot/Bootscript | 10 ++++++++++ 1 file changed, 10 insertions(+) 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