diff options
author | Bill Nottingham <notting@redhat.com> | 2002-03-28 19:49:45 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2002-03-28 19:49:45 +0000 |
commit | abb300d07d90b880852af20d57ba273a25628e4d (patch) | |
tree | a6bd09397573b2535f8921c850bd542fccc65ecb /rc.d/rc.sysinit | |
parent | 575ae92b5184d66926a2fea7f3c0ab974527f054 (diff) | |
download | initscripts-abb300d07d90b880852af20d57ba273a25628e4d.tar initscripts-abb300d07d90b880852af20d57ba273a25628e4d.tar.gz initscripts-abb300d07d90b880852af20d57ba273a25628e4d.tar.bz2 initscripts-abb300d07d90b880852af20d57ba273a25628e4d.tar.xz initscripts-abb300d07d90b880852af20d57ba273a25628e4d.zip |
turrn off DMA on all CDs at boot <mingo@redhat.com>
Diffstat (limited to 'rc.d/rc.sysinit')
-rwxr-xr-x | rc.d/rc.sysinit | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 0555ae88..658c218d 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -351,6 +351,17 @@ 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 + DRIVERS=`find /proc/ide/ -name driver` + if [ "$DRIVERS" != "" ]; then + for N in `grep -v ide-disk $DRIVERS | cut -d/ -f5` ; do + hdparm -d0 /dev/$N + done + fi +fi + + # Turn on harddisk optimization # There is only one file /etc/sysconfig/harddisks for all disks # after installing the hdparm-RPM. If you need different hdparm parameters |