summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-03-12 10:34:59 +0000
committerErmal <eri@pfsense.org>2012-03-12 10:34:59 +0000
commita24a096d8fb8c166eb244e6a67b91fff2b3656c9 (patch)
treecdb1df09ae182a25bcc547073d2b2d1e5b69407b /etc/rc
parent0ee33b35a367bf12dbdee2123124181851c46b91 (diff)
downloadpfsense-a24a096d8fb8c166eb244e6a67b91fff2b3656c9.zip
pfsense-a24a096d8fb8c166eb244e6a67b91fff2b3656c9.tar.gz
check for presense of file before trying to exec it
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index d4f923d..ad683fb 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
# Check to see if a compact flash mountpoint exists
# If it fails to mount then run a fsck -fy
OpenPOWER on IntegriCloud