3 # Try mounting the CDROM drive
6 echo "Doing mount_cdrom ..."
7 modprobe nls_iso8859-1 2>/dev/null >/dev/null
8 modprobe cdrom 2>/dev/null >/dev/null
9 modprobe scsi_mod 2>/dev/null >/dev/null
12 if [ -f /proc/scsi/scsi ] ; then
14 DISKS="$DISKS /dev/scd? /dev/scd?? /dev/sd?[1-9] /dev/sd?[1-9][1-9]"
18 DISKS="$DISKS /dev/hd?[1-9] /dev/hd?[1-9][1-9]"
20 echo "Trying to find CDROM on ..."
21 for disk in $DISKS; do
22 if [ x$DEBUG = xyes ] ; then
23 echo "Trying to mount device $disk"
25 if test -b $disk && mount -t iso9660 -o ro -n $disk /mnt/cdrom 2>/dev/null >/dev/null ; then
26 # if test -b $disk && mount -t iso9660 -o ro -n $disk /mnt/cdrom ; then
27 if [ -e /mnt/cdrom/BaculaRescueCD ] ; then
28 echo "Found the Bacula Rescue CDROM on $disk"
35 if [ x$DEBUG = xyes ] ; then
42 echo "Sorry could not find the CDROM"