diff options
author | Ermal <eri@pfsense.org> | 2012-03-12 10:34:29 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-03-12 10:34:29 +0000 |
commit | 06fd1952d38746404570c3577e79ad5fa34fe372 (patch) | |
tree | 29450b3957e49899580de4bfc543a19616f5e477 | |
parent | e8197e56f360f222d03de24f8b66fe5125123c30 (diff) | |
download | pfsense-06fd1952d38746404570c3577e79ad5fa34fe372.zip pfsense-06fd1952d38746404570c3577e79ad5fa34fe372.tar.gz |
check for presense of file before trying to exec it
-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 if [ ! "$PLATFORM" = "jail" ]; then # Check to see if a compact flash mountpoint exists |