summaryrefslogtreecommitdiffstats
path: root/src/etc/pfSense-rc.shutdown
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-10-12 16:29:07 -0300
committerRenato Botelho <renato@netgate.com>2016-10-12 16:29:49 -0300
commitdc61252ae4dbfcfe5d75f40c86b5cf955242b788 (patch)
tree8db639550cb248216a10b6b9d5ec10ab6384c32f /src/etc/pfSense-rc.shutdown
parent9ed7f8f635c6b8d8074c2abe754aadb965aa47c4 (diff)
downloadpfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.zip
pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.tar.gz
Deprecate nanobsd platform and remove all conditionals that uses it
Diffstat (limited to 'src/etc/pfSense-rc.shutdown')
-rwxr-xr-xsrc/etc/pfSense-rc.shutdown10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/etc/pfSense-rc.shutdown b/src/etc/pfSense-rc.shutdown
index 9e01643..dc6221f 100755
--- a/src/etc/pfSense-rc.shutdown
+++ b/src/etc/pfSense-rc.shutdown
@@ -39,18 +39,14 @@ HOME=/; export HOME
PATH=/sbin:/bin:/usr/sbin:/usr/bin
export PATH
-# If PLATFORM is $product then remove
-# temporary files on shutdown from /tmp/
-PLATFORM=`cat /etc/platform`
-if [ "$PLATFORM" = "${product}" ]; then
- find -x /tmp/* -type f -exec rm -f {} \; >/dev/null 2>&1
-fi
+# Remove temporary files on shutdown from /tmp/
+find -x /tmp/* -type f -exec rm -f {} \; >/dev/null 2>&1
USE_MFS_TMPVAR=$(/usr/local/sbin/read_xml_tag.sh boolean system/use_mfs_tmpvar)
DISK_NAME=`/bin/df /var/db/rrd | /usr/bin/tail -1 | /usr/bin/awk '{print $1;}'`
DISK_TYPE=`/usr/bin/basename ${DISK_NAME} | /usr/bin/cut -c1-2`
# If we are not on a full install, or if the full install wants RAM disks, or if the full install _was_ using RAM disks, but isn't for the next boot...
-if [ "${PLATFORM}" != "${product}" ] || [ "${USE_MFS_TMPVAR}" = "true" ] || [ "${DISK_TYPE}" = "md" ]; then
+if [ "${USE_MFS_TMPVAR}" = "true" ] || [ "${DISK_TYPE}" = "md" ]; then
/etc/rc.backup_aliastables.sh
/etc/rc.backup_rrd.sh
/etc/rc.backup_dhcpleases.sh
OpenPOWER on IntegriCloud