diff options
author | jim-p <jimp@pfsense.org> | 2012-01-30 16:24:58 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-01-30 16:24:58 -0500 |
commit | 92ac3b3d4587bdc1dac4352d6573896cf315df22 (patch) | |
tree | 1bc04b29c98f92d6c93e4ec7fefbc4999f14a0a2 /etc/rc | |
parent | e8fc69ff43bb089f90de4f87f02db44f55a96b40 (diff) | |
download | pfsense-92ac3b3d4587bdc1dac4352d6573896cf315df22.zip pfsense-92ac3b3d4587bdc1dac4352d6573896cf315df22.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-x | etc/rc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 + if [ ! "$PLATFORM" = "jail" ]; then # Check to see if a compact flash mountpoint exists # If it fails to mount then run a fsck -fy |