Changeset 1581 in MondoRescue for branches/stable/mindi/rootfs/sbin
- Timestamp:
- Jul 27, 2007, 2:11:55 AM (18 years ago)
- Location:
- branches/stable/mindi/rootfs/sbin
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/rootfs/sbin/find-and-mount-cdrom
r1158 r1581 75 75 exit 0 76 76 fi 77 #mount /dev/fd0u1722 -t ext2 /mnt/floppy 78 [ "$1" = "--second-try" ] && exit 1; # don't try to mount floppy drive 77 [ "$1" = "--second-try" ] && exit 1; 79 78 if [ "`grep "using-cdstream=yes" /tmp/mondo-restore.cfg`" ] ; then 80 79 LogIt "Because you are using cdstream, I won't try to mount CD." 81 80 exit 0 82 81 fi 83 mount /dev/fd0 -t ext2 -o ro /mnt/floppy 2> /dev/null84 if [ "$?" -eq "0" ] ; then85 umount /mnt/floppy 2> /dev/null86 exit 187 else88 LogIt "Please go to another PC, mount this CD and copy the data disk images" 189 LogIt "from the CD's /images directory to blank 1.44MB floppy disks. You should" 190 LogIt "use something like 'dd if=/mnt/cdrom/images/mindi-data-1.img of=/dev/fd0'" 191 LogIt "for the first data disk, mindi-data-2.img for the second, and so on." 192 LogIt "(If you are already booting from a floppy, please ignore this message.)" 193 exit 294 fi95 96 97 98 -
branches/stable/mindi/rootfs/sbin/init
r1478 r1581 123 123 LogIt "$tapedev failed to act as extended data disk for booting." 1 124 124 LogIt "Please specify an alternate tape device," 1 125 LogIt "or hit <Enter> to boot from CD /floppies." 1125 LogIt "or hit <Enter> to boot from CD." 1 126 126 echo -en "---> " 127 127 read tapedev … … 138 138 139 139 if [ "$res" -ne "0" ] ; then 140 cd /141 LogIt "Failed to use tape as extended datadisk. Reverting to floppies." 1142 HandleCDROMorFloppies143 res=$?140 cd / 141 LogIt "Failed to use tape as extended datadisk. Reverting to cd." 1 142 HandleCDROM 143 res=$? 144 144 else 145 # clear146 LogIt "Using tape as extended datadisk. Good." 3147 echo "Using tape as extd ddisk." > /tmp/TAPEDEV-HAS-DATA-DISKS148 res=0145 # 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 149 149 CD_MOUNTED_OK=yes 150 150 fi … … 154 154 155 155 156 H andleCDROMorFloppies() {156 HHandleCDROM() { 157 157 find-and-mount-cdrom 158 158 res=$? … … 167 167 LogIt "OK, I am running on a CD-ROM. Good." 3 168 168 CD_MOUNTED_OK=yes 169 elif [ "$res" -eq "1" ] ; then170 LogIt "OK, I am running on floppies. Good." 3171 CD_MOUNTED_OK=""172 169 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 179 172 LogIt "your tape streamer and/or CD-ROM drive are eccentric. :-)" 3 180 173 CD_MOUNTED_OK="" … … 479 472 ExtractDataDisksAndLoadModules 480 473 else 481 HandleCDROM orFloppies474 HandleCDROM 482 475 ExtractDataDisksAndLoadModules 483 476 # We need to get here exported variables from start-nfs … … 563 556 else 564 557 LogIt "backup-media-type is not specified in config file." 565 LogIt "I think this CD/floppyhas no archives on it."558 LogIt "I think this media has no archives on it." 566 559 fi 567 560 echo -en "Type 'exit' to reboot the PC\n" -
branches/stable/mindi/rootfs/sbin/untar-and-softlink
r866 r1581 14 14 # ---------------------- main ---------------------- 15 15 16 mountpoint= /mnt/floppy16 mountpoint="" 17 17 [ -e "/tmp/CDROM-LIVES-HERE" ] && mountpoint=/mnt/cdrom/images 18 18 [ "$#" -eq "3" ] || Die "untar-and-softlink <tarball> <untar_to> <softlink_to>" … … 23 23 if [ -e "/tmp/CDROM-LIVES-HERE" ] ; then 24 24 [ -e "$tarball" ] || LogIt "Can't find CD's $tarball" 1 25 else26 while [ ! -f "$tarball" ] ; do27 echo -e -n "Please insert data (floppy) disk #$diskno and press ENTER."28 read line29 mount /dev/fd0 -t ext2 -o ro $mountpoint30 [ -f "$tarball" ] || umount $mountpoint ; # unmount if tarball not on disk31 echo -en "Working..."32 done33 25 fi 34 26
Note:
See TracChangeset
for help on using the changeset viewer.