[haiku-commits] r35614 - haiku/trunk/data/system/boot

  • From: axeld@xxxxxxxxxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 25 Feb 2010 11:40:58 +0100 (CET)

Author: axeld
Date: 2010-02-25 11:40:58 +0100 (Thu, 25 Feb 2010)
New Revision: 35614
Changeset: http://dev.haiku-os.org/changeset/35614/haiku

Modified:
   haiku/trunk/data/system/boot/Bootscript
Log:
* We now create the /tmp directory if it does not exist yet.
* Also, we now empty it if it already exists.


Modified: haiku/trunk/data/system/boot/Bootscript
===================================================================
--- haiku/trunk/data/system/boot/Bootscript     2010-02-25 01:50:29 UTC (rev 
35613)
+++ haiku/trunk/data/system/boot/Bootscript     2010-02-25 10:40:58 UTC (rev 
35614)
@@ -80,7 +80,17 @@
        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
 
 # We must wait for the app_server and registrar to be ready


Other related posts:

  • » [haiku-commits] r35614 - haiku/trunk/data/system/boot - axeld