summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/tmp
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-09-13 17:40:14 +0000
committerru <ru@FreeBSD.org>2004-09-13 17:40:14 +0000
commit12835c964a25e26721517727ab9240201ec3ed2b (patch)
tree1d1cdf9ec2249bdd62f9ff0121513003468b092d /etc/rc.d/tmp
parent876ffa30db5b0123994fca618dc4d9b53d0fcc7f (diff)
downloadFreeBSD-src-12835c964a25e26721517727ab9240201ec3ed2b.zip
FreeBSD-src-12835c964a25e26721517727ab9240201ec3ed2b.tar.gz
A power failure left the temporary /var/.diskless directory
on my system, and since then my /var was always created as MFS which was very surprising. Fix this for /tmp and /var.
Diffstat (limited to 'etc/rc.d/tmp')
-rw-r--r--etc/rc.d/tmp2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp
index 26cc64a..a39fd8c 100644
--- a/etc/rc.d/tmp
+++ b/etc/rc.d/tmp
@@ -49,7 +49,7 @@ case "${tmpmfs}" in
[Nn][Oo])
;;
*)
- if (/bin/mkdir /tmp/.diskless 2> /dev/null); then
+ if (/bin/mkdir -p /tmp/.diskless 2> /dev/null); then
rmdir /tmp/.diskless
else
if [ -h /tmp ]; then
OpenPOWER on IntegriCloud