From 2165a469e7c795b5af3759be00d698f02c7a1b3c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 10 Apr 2002 05:43:13 +0000 Subject: move DMA hammer-of-doom to after loading of ide-scsi --- rc.d/rc.sysinit | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'rc.d/rc.sysinit') diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index aecf4b65..2a3b9980 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -351,13 +351,6 @@ mount -f /proc [ -f /proc/bus/usb/devices ] && mount -f -t usbdevfs usbdevfs /proc/bus/usb [ -e /dev/.devfsd ] && mount -f -t devfs devfs /dev -# Turn off DMA on CD-ROMs. It more often than not causes problems. -if [ -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 -fi - # Turn on harddisk optimization # There is only one file /etc/sysconfig/harddisks for all disks @@ -717,6 +710,13 @@ if grep -q "ide-scsi" /proc/cmdline ; then modprobe ide-scsi >/dev/null 2>&1 fi +# Turn off DMA on CD-ROMs. It more often than not causes problems. +if [ -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 +fi + # Generate a header that defines the boot kernel. /sbin/mkkerneldoth -- cgit v1.2.1