summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-01-01 00:15:37 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-01-01 00:15:37 +0000
commit99dc4c7798c75ea30249e538f09da4575bf81f94 (patch)
treececa5a162440d57933f33479b274092705dd49d9 /etc/rc.shutdown
parent0b6c7bced2e4efdd336c3f578f93fcf66d716d37 (diff)
downloadpfsense-99dc4c7798c75ea30249e538f09da4575bf81f94.zip
pfsense-99dc4c7798c75ea30249e538f09da4575bf81f94.tar.gz
Do not rm -rf /tmp on shutdown if platform is not pfSense
Diffstat (limited to 'etc/rc.shutdown')
-rwxr-xr-xetc/rc.shutdown7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/rc.shutdown b/etc/rc.shutdown
index 288e079..a2f3d11 100755
--- a/etc/rc.shutdown
+++ b/etc/rc.shutdown
@@ -17,4 +17,9 @@ HOME=/; export HOME
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH
-rm -rf /tmp/*
+# If PLATFORM is pfSense then remove
+# temporary files on shutdown from /tmp/
+PLATFORM=`cat /etc/platform`
+if [ "$PLATFORM" = "pfSense" ]; then
+ rm -rf /tmp/*
+fi
OpenPOWER on IntegriCloud