Changeset 1106 in MondoRescue for trunk/mindi/rootfs
- Timestamp:
- Feb 7, 2007, 11:55:11 PM (18 years ago)
- Location:
- trunk/mindi/rootfs/sbin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/rootfs/sbin/find-and-mount-cdrom
r274 r1106 8 8 [ ! "$SECOND_TRY" ] && LogIt "Trying $device" 9 9 if [ "`grep "using-cdstream yes" /tmp/mondo-restore.cfg`" ]; then 10 pwd=`pwd`11 cd $GROOVY10 pwd=`pwd` 11 cd $GROOVY 12 12 tar -zxf $device 2> /tmp/mount.log 13 13 res=$? 14 cd $pwd14 cd $pwd 15 15 if [ "$res" -eq "0" ] ; then 16 clear17 18 echo "Using cdstreaas extd dsk." > /tmp/TAPEDEV-HAS-DATA-DISKS19 20 21 fi16 clear 17 LogIt "Using cdstream as extended datadisk ($device). Good." 3 18 echo "Using cdstream as extd dsk." > /tmp/TAPEDEV-HAS-DATA-DISKS 19 ln -sf $device /dev/cdrom 20 exit 0 21 fi 22 22 else 23 23 mount $device -t iso9660 -o ro /mnt/cdrom 2> /tmp/mount.log 24 res=$?24 res=$? 25 25 fi 26 if [ "$res" -ne "0" ] ; then27 res=`cat /tmp/mount.log`28 if [ "$res" = "mount: No medium found" ] ; then26 if [ "$res" -ne "0" ] ; then 27 res=`cat /tmp/mount.log` 28 if [ "$res" = "mount: No medium found" ] ; then 29 29 [ ! "$SECOND_TRY" ] && LogIt "There is a CD-ROM drive at $device but no CD in it." 30 else30 else 31 31 [ ! "$SECOND_TRY" ] && LogIt "It's not in $device; I'll keep looking" 32 fi33 continue32 fi 33 continue 34 34 fi 35 35 LogIt "$device has a CD-ROM in it" -
trunk/mindi/rootfs/sbin/init
r1079 r1106 83 83 LoadKeymap() { 84 84 local fname 85 fname=` cat /tmp/KEYMAP-LIVES-HERE2> /dev/null`85 fname=`grep keymap-lives-here /tmp/mondo-restore.cfg | cut -d' ' -f2 2> /dev/null` 86 86 [ "$fname" = "" ] && return 87 87 if which loadkeys > /dev/null 2> /dev/null ; then
Note:
See TracChangeset
for help on using the changeset viewer.