# This script will remove SCSI CD drivers and
# install IDE CD support

if test "$(/sbin/lsmod | grep --count 'sg       ')" != "0"; then
/sbin/rmmod sg
fi
if test "$(/sbin/lsmod | grep --count 'sr_mod   ')" != "0"; then
/sbin/rmmod sr_mod
fi
if test "$(/sbin/lsmod | grep --count 'ide-scsi ')" != "0"; then
/sbin/rmmod ide-scsi
fi
if test "$(/sbin/lsmod | grep --count 'scsi_mod ')" != "0"; then
/sbin/rmmod scsi_mod
fi

/sbin/modprobe ide-cd

