summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2011-06-17 21:33:22 -0400
committerDJ Delorie <dj@delorie.com>2011-06-17 21:33:22 -0400
commit3d640cf4b44610c2c3852e0ae0406e02990b34f1 (patch)
tree61ac20817b426ea8cb02898c678cde38d09b4531
parent6aa739421d10f4c0ce2c090798484af46aa6a4d0 (diff)
downloadbootstrap-3d640cf4b44610c2c3852e0ae0406e02990b34f1.tar.gz
bootstrap-3d640cf4b44610c2c3852e0ae0406e02990b34f1.tar.xz
bootstrap-3d640cf4b44610c2c3852e0ae0406e02990b34f1.zip
Create /tmp if needed
-rwxr-xr-xstage27
1 files changed, 7 insertions, 0 deletions
diff --git a/stage2 b/stage2
index 09a2314..0821c5f 100755
--- a/stage2
+++ b/stage2
@@ -93,6 +93,13 @@ then
mknod /dev/ttyO3 c 253 3
fi
+if [ ! -d /tmp ]
+then
+ echo Creating /tmp...
+ mkdir /tmp
+ chmod 1777 /tmp
+fi
+
# ------------------------------------------------------------
mkdirp()