#----------------------------------------------------------------------------
# /etc/boot.d/rc100.cdboot
#
# Creation:     2004-06-26 
# Last Update:  $Id: rc100.cdboot 7455 2005-01-04 16:02:29Z jw5 $
#----------------------------------------------------------------------------

if [ ! "$boot" -a -f /proc/sys/dev/cdrom/info ]
then        # find first cdrom-drive
    cd_drives=`cat /proc/sys/dev/cdrom/info | grep "drive name:"`
    set $cd_drives
    drive=$3
    # select always the first scsi-drive
    if echo "$drive" | grep -q sr
    then
        drive=scd0
    fi
    
    boot_dev=/dev/"$drive"
    boot_fs=iso9660
    mount -r $boot_dev /boot -t $boot_fs || stop "can't mount boot-cd, check drivers"
    read_config /boot/$rcfile
    # extract_opt /boot/$opt_archive "$unzip_method" "you seem to be out of ram"
    # only uncompressed tarfile
    extract_opt /boot/opt.tar cat "you seem to be out of ram"
    exec_scripts /opt/etc/prep
    umount /boot
fi
