aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rc.sysinit
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2002-04-02 23:15:53 +0000
committerBill Nottingham <notting@redhat.com>2002-04-02 23:15:53 +0000
commit920416a13bf390943c0f36d984fcab5cb62d5251 (patch)
treef78d5f86d6689043cc4c9a7d54246115d74470ab /rc.d/rc.sysinit
parent31c0490a7802777319ca2dc4c8553c519631152e (diff)
downloadinitscripts-920416a13bf390943c0f36d984fcab5cb62d5251.tar
initscripts-920416a13bf390943c0f36d984fcab5cb62d5251.tar.gz
initscripts-920416a13bf390943c0f36d984fcab5cb62d5251.tar.bz2
initscripts-920416a13bf390943c0f36d984fcab5cb62d5251.tar.xz
initscripts-920416a13bf390943c0f36d984fcab5cb62d5251.zip
don't use stuff in /usr in the ide-dma check
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-xrc.d/rc.sysinit4
1 files changed, 1 insertions, 3 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 658c218d..28b11bd2 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -353,9 +353,7 @@ mount -f /proc
# Turn off DMA on CD-ROMs. It more often than not causes problems.
if [ -e /proc/ide ]; then
- DRIVERS=`find /proc/ide/ -name driver`
- if [ "$DRIVERS" != "" ]; then
- for N in `grep -v ide-disk $DRIVERS | cut -d/ -f5` ; do
+ for N in `grep -v ide-disk /proc/ide/*/*/driver 2>/dev/null | awk -F / '{ print $5 }'`; do
hdparm -d0 /dev/$N
done
fi