aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-05-08 03:38:56 +0000
committerBill Nottingham <notting@redhat.com>2002-05-08 03:38:56 +0000
commit88865a3196aa29b0ebcc55af9f7e6c7f58369dc0 (patch)
tree60af636ac0892e8e36d4ef7cb098634438934bf7
parent954afbc47e78ccf2a1ca83a0076a1eb3e325e974 (diff)
downloadinitscripts-88865a3196aa29b0ebcc55af9f7e6c7f58369dc0.tar
initscripts-88865a3196aa29b0ebcc55af9f7e6c7f58369dc0.tar.gz
initscripts-88865a3196aa29b0ebcc55af9f7e6c7f58369dc0.tar.bz2
initscripts-88865a3196aa29b0ebcc55af9f7e6c7f58369dc0.tar.xz
initscripts-88865a3196aa29b0ebcc55af9f7e6c7f58369dc0.zip
actually test that hdparm is there before trying to call it
-rwxr-xr-xrc.d/rc.sysinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 34ffb3c4..f449b639 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -673,7 +673,7 @@ if grep -q "ide-scsi" /proc/cmdline ; then
fi
# Turn off DMA on CD-ROMs. It more often than not causes problems.
-if [ -e /proc/ide ]; then
+if [ -x /sbin/hdparm -a -e /proc/ide ]; then
for N in `grep -v ide-disk /proc/ide/*/*/driver 2>/dev/null | awk -F / '{ print $5 }'`; do
hdparm -q -d0 /dev/$N >/dev/null 2>&1
done