Changeset 1581 in MondoRescue for branches/stable/mindi/rootfs/sbin/init


Ignore:
Timestamp:
Jul 27, 2007, 2:11:55 AM (13 years ago)
Author:
Bruno Cornec
Message:

Continue to remove floppy support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/rootfs/sbin/init

    r1478 r1581  
    123123        LogIt "$tapedev failed to act as extended data disk for booting." 1
    124124        LogIt "Please specify an alternate tape device," 1
    125         LogIt "or hit <Enter> to boot from CD/floppies." 1
     125        LogIt "or hit <Enter> to boot from CD." 1
    126126        echo -en "---> "
    127127        read tapedev
     
    138138
    139139    if [ "$res" -ne "0" ] ; then
    140     cd /
    141     LogIt "Failed to use tape as extended datadisk. Reverting to floppies." 1
    142     HandleCDROMorFloppies
    143     res=$?
     140        cd /
     141        LogIt "Failed to use tape as extended datadisk. Reverting to cd." 1
     142        HandleCDROM
     143        res=$?
    144144    else
    145 #   clear
    146     LogIt "Using tape as extended datadisk. Good." 3
    147     echo "Using tape as extd ddisk." > /tmp/TAPEDEV-HAS-DATA-DISKS
    148     res=0
     145    #   clear
     146        LogIt "Using tape as extended datadisk. Good." 3
     147        echo "Using tape as extd ddisk." > /tmp/TAPEDEV-HAS-DATA-DISKS
     148        res=0
    149149        CD_MOUNTED_OK=yes
    150150    fi
     
    154154
    155155
    156 HandleCDROMorFloppies() {
     156HHandleCDROM() {
    157157    find-and-mount-cdrom
    158158    res=$?
     
    167167        LogIt "OK, I am running on a CD-ROM. Good." 3
    168168        CD_MOUNTED_OK=yes
    169     elif [ "$res" -eq "1" ] ; then
    170         LogIt "OK, I am running on floppies. Good." 3
    171         CD_MOUNTED_OK=""
    172169    else
    173         LogIt "OK, I am falling back to floppy mode." 3
    174         LogIt "That means you'll have to copy the data disk images from" 3
    175         LogIt "the CD/hard disk/whatever to physical 1.44MB disks and" 3
    176         LogIt "insert them, one after the other. Please see the manual." 3
    177         LogIt "The images are in /images on the CD, or /var/cache/mindi" 3
    178         LogIt "on your hard disk. Your archives are probably fine but" 3
     170        LogIt "OK, I am unable to go on. You seem to be missing a driver" 3
     171        LogIt "Your archives are probably fine but" 3
    179172        LogIt "your tape streamer and/or CD-ROM drive are eccentric. :-)" 3
    180173        CD_MOUNTED_OK=""
     
    479472    ExtractDataDisksAndLoadModules
    480473else
    481     HandleCDROMorFloppies
     474    HandleCDROM
    482475    ExtractDataDisksAndLoadModules
    483476    # We need to get here exported variables from start-nfs
     
    563556else
    564557    LogIt "backup-media-type is not specified in config file."
    565     LogIt "I think this CD/floppy has no archives on it."
     558    LogIt "I think this media has no archives on it."
    566559fi
    567560echo -en "Type 'exit' to reboot the PC\n"
Note: See TracChangeset for help on using the changeset viewer.