summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-01-30 16:24:58 -0500
committerjim-p <jimp@pfsense.org>2012-01-30 16:40:03 -0500
commit51f4e64b319afe3609b6e3d66e7467fa4ba3dcc2 (patch)
tree2dd20259f20f555599caf7f7f7e5bdc14961402a /etc/rc
parent89bbb204ad58c4d0250ebabf34ebec1996a53088 (diff)
downloadpfsense-51f4e64b319afe3609b6e3d66e7467fa4ba3dcc2.zip
pfsense-51f4e64b319afe3609b6e3d66e7467fa4ba3dcc2.tar.gz
Add a small script to disable APM on ATA drives if they claim to support it. Leaving this on will kill drives long-term, especially laptop drives, by generating excessive Load Cycles.
The APM bit set will persist until the drive is power cycled, so it's necessary to run on each boot to be sure.
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index 1d9062c..119af44 100755
--- a/etc/rc
+++ b/etc/rc
@@ -80,6 +80,9 @@ if [ ! "$PLATFORM" = "cdrom" ] ; then
fi
fi
+# Disable APM on ATA drives. Leaving this on will kill drives long-term, especially laptop drives, by generating excessive Load Cycles.
+/etc/rc.disable_hdd_apm
+
# Check to see if a compact flash mountpoint exists
# If it fails to mount then run a fsck -fy
if grep -q cf /etc/fstab; then
OpenPOWER on IntegriCloud