summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-03-12 10:34:29 +0000
committerErmal <eri@pfsense.org>2012-03-12 10:34:29 +0000
commit06fd1952d38746404570c3577e79ad5fa34fe372 (patch)
tree29450b3957e49899580de4bfc543a19616f5e477
parente8197e56f360f222d03de24f8b66fe5125123c30 (diff)
downloadpfsense-06fd1952d38746404570c3577e79ad5fa34fe372.zip
pfsense-06fd1952d38746404570c3577e79ad5fa34fe372.tar.gz
check for presense of file before trying to exec it
-rwxr-xr-xetc/rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index a93606d..c09b155 100755
--- a/etc/rc
+++ b/etc/rc
@@ -81,7 +81,9 @@ if [ ! "$PLATFORM" = "cdrom" ] ; then
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 [ -f /etc/rc.disable_hdd_apm ]; then
+ /etc/rc.disable_hdd_apm
+fi
if [ ! "$PLATFORM" = "jail" ]; then
# Check to see if a compact flash mountpoint exists
OpenPOWER on IntegriCloud