summaryrefslogtreecommitdiffstats
path: root/etc/rc.shutdown
diff options
context:
space:
mode:
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