summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-06-01 19:05:22 -0400
committerScott Ullrich <sullrich@pfsense.org>2010-06-01 19:05:22 -0400
commit3fb8caf25800fce340a6478557040752e6dbb35d (patch)
tree6d04cebb07a547c3f191a057732c6e039972d6b6 /etc/rc
parent155e343b82373e216272b9e85944d8510106c636 (diff)
downloadpfsense-3fb8caf25800fce340a6478557040752e6dbb35d.zip
pfsense-3fb8caf25800fce340a6478557040752e6dbb35d.tar.gz
Do not nuke /tmp/ on livecd's
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 57a5902..c878145 100755
--- a/etc/rc
+++ b/etc/rc
@@ -171,7 +171,9 @@ if [ ! -h /tmp/tmp ]; then
fi
# Make sure our /tmp is 777 + Sticky
-rm -rf /tmp/*
+if [ ! "$PLATFORM" = "cdrom" ] ; then
+ rm -rf /tmp/*
+fi
chmod 1777 /tmp
if [ ! "$PLATFORM" = "cdrom" ] ; then
OpenPOWER on IntegriCloud