diff options
author | Bill Nottingham <notting@redhat.com> | 2002-04-10 05:43:13 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-04-10 05:43:13 +0000 |
commit | 2165a469e7c795b5af3759be00d698f02c7a1b3c (patch) | |
tree | de3b716c055518a98626c10078d90e1095d732f3 | |
parent | 7acd50df0b32f27ad13f4da65a8ed7b4a7f8eca0 (diff) | |
download | initscripts-2165a469e7c795b5af3759be00d698f02c7a1b3c.tar initscripts-2165a469e7c795b5af3759be00d698f02c7a1b3c.tar.gz initscripts-2165a469e7c795b5af3759be00d698f02c7a1b3c.tar.bz2 initscripts-2165a469e7c795b5af3759be00d698f02c7a1b3c.tar.xz initscripts-2165a469e7c795b5af3759be00d698f02c7a1b3c.zip |
move DMA hammer-of-doom to after loading of ide-scsi
-rwxr-xr-x | rc.d/rc.sysinit | 14 |
1 files changed, 7 insertions, 7 deletions
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 |