summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.reboot
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/rc.reboot
parent9ed7f8f635c6b8d8074c2abe754aadb965aa47c4 (diff)
downloadpfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.zip
pfsense-dc61252ae4dbfcfe5d75f40c86b5cf955242b788.tar.gz
Deprecate nanobsd platform and remove all conditionals that uses it
Diffstat (limited to 'src/etc/rc.reboot')
-rwxr-xr-xsrc/etc/rc.reboot10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/etc/rc.reboot b/src/etc/rc.reboot
index 61f9205..f795dec 100755
--- a/src/etc/rc.reboot
+++ b/src/etc/rc.reboot
@@ -28,18 +28,14 @@ sleep 1
# Read product_name from $g, defaults to pfSense
product=$(/usr/local/sbin/read_global_var product_name pfSense)
-# If PLATFORM is $product then remove
-# temporary files on shutdown from /tmp/
-PLATFORM=`cat /etc/platform`
-if [ "$PLATFORM" = "${product}" ]; then
- rm -rf /tmp/*
-fi
+# Remove temporary files on shutdown from /tmp/
+rm -rf /tmp/*
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