summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-03-31 10:40:20 -0400
committerjim-p <jimp@pfsense.org>2014-03-31 10:40:20 -0400
commitaa87bae5fc11a857c9dc7793fc4a932cc860e94a (patch)
treebe18d102f98fca3ed4a78009b1f240faa8160d4c /etc
parent02b29d72f91d5fe4e9d9a2d4a4f7be3b4db119a1 (diff)
downloadpfsense-aa87bae5fc11a857c9dc7793fc4a932cc860e94a.zip
pfsense-aa87bae5fc11a857c9dc7793fc4a932cc860e94a.tar.gz
Remove TRIM_set and TRIM_unset support. This method isn't very elegant and isn't necessary in the long run. It's better handled in the installer stage and not after the fact.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc23
1 files changed, 0 insertions, 23 deletions
diff --git a/etc/rc b/etc/rc
index 045c707..7dc442c 100755
--- a/etc/rc
+++ b/etc/rc
@@ -39,29 +39,6 @@ if [ -e /root/force_fsck ]; then
fi
fi
-if [ -e /root/TRIM_set -o -e /root/TRIM_unset ]; then
- TUNEFS_STATUS=`/sbin/tunefs -p / 2>&1 | /usr/bin/grep trim: | /usr/bin/awk '{print $4;}'`
- if [ -e /root/TRIM_set ] && [ "${TUNEFS_STATUS}" = "disabled" ]; then
- echo "Enabling TRIM support"
- /sbin/tunefs -t enable /
- if [ "$PLATFORM" = "nanobsd" ]; then
- /sbin/tunefs -t enable /cf
- fi
- echo "Rebooting in 5 seconds after enabling TRIM..."
- sleep 5
- /sbin/reboot
- elif [ -e /root/TRIM_unset ] && [ "${TUNEFS_STATUS}" = "enabled" ]; then
- echo "Disabling TRIM support"
- /sbin/tunefs -t disable /
- if [ "$PLATFORM" = "nanobsd" ]; then
- /sbin/tunefs -t disable /cf
- fi
- echo "Rebooting in 5 seconds after disabling TRIM..."
- sleep 5
- /sbin/reboot
- fi
-fi
-
# Mount memory file system if it exists
echo "Mounting filesystems..."
OpenPOWER on IntegriCloud