From 920416a13bf390943c0f36d984fcab5cb62d5251 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 2 Apr 2002 23:15:53 +0000 Subject: don't use stuff in /usr in the ide-dma check --- rc.d/rc.sysinit | 4 +--- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.1