From 88865a3196aa29b0ebcc55af9f7e6c7f58369dc0 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 8 May 2002 03:38:56 +0000 Subject: actually test that hdparm is there before trying to call it --- rc.d/rc.sysinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.d') 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 -- cgit v1.2.1