diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-01-01 00:15:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-01-01 00:15:37 +0000 |
commit | 99dc4c7798c75ea30249e538f09da4575bf81f94 (patch) | |
tree | ceca5a162440d57933f33479b274092705dd49d9 /etc/rc.shutdown | |
parent | 0b6c7bced2e4efdd336c3f578f93fcf66d716d37 (diff) | |
download | pfsense-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-x | etc/rc.shutdown | 7 |
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 |