diff options
author | Ermal <eri@pfsense.org> | 2012-03-12 10:34:59 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-03-12 10:34:59 +0000 |
commit | a24a096d8fb8c166eb244e6a67b91fff2b3656c9 (patch) | |
tree | cdb1df09ae182a25bcc547073d2b2d1e5b69407b /etc/rc | |
parent | 0ee33b35a367bf12dbdee2123124181851c46b91 (diff) | |
download | pfsense-a24a096d8fb8c166eb244e6a67b91fff2b3656c9.zip pfsense-a24a096d8fb8c166eb244e6a67b91fff2b3656c9.tar.gz |
check for presense of file before trying to exec it
Diffstat (limited to 'etc/rc')
-rwxr-xr-x | etc/rc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |