Changeset 1983 in MondoRescue for branches/2.2.7/mindi/rootfs/sbin/init
- Timestamp:
- Jun 16, 2008, 9:40:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.7/mindi/rootfs/sbin/init
r1968 r1983 104 104 cd $GROOVY 105 105 [ "$1" != "" ] && tapedev=$1 106 [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo-restore.cfg | tr -s ' ' ' ' | cut -d' ' -f2`106 [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo-restore.cfg 2>/dev/null | tr -s ' ' ' ' | cut -d' ' -f2` 107 107 mt -f $tapedev rewind 108 108 mt -f $tapedev fsf 2 … … 111 111 if [ "$res" -eq "0" ] ; then 112 112 # Store the dev name in case we changed it interactively 113 sed -i "s/^media-dev .*$/media-dev $tapedev/" /tmp/mondo-restore.cfg 114 115 #grep -v media-dev /tmp/mondo-restore.cfg > /tmp/mr.cfg 116 #echo "media-dev $tapedev" >> /tmp/mr.cfg 117 #cp -f /tmp/mr.cfg /tmp/mondo-restore.cfg 113 if [ -f "/tmp/mondo-restore.cfg" ]; then 114 sed -i "s/^media-dev .*$/media-dev $tapedev/" /tmp/mondo-restore.cfg 115 fi 118 116 fi 119 117 cd $old_pwd … … 453 451 local res 454 452 mount | grep /mnt/cdrom && return 0 455 [ "`grep "backup_media_type" /tmp/mondo-restore.cfg | grep "cdstream"`" ] && return453 [ "`grep "backup_media_type" /tmp/mondo-restore.cfg 2> /dev/null | grep "cdstream"`" ] && return 456 454 LogIt "Trying to mount CD-ROM a 2nd time..." 457 455 find-and-mount-cdrom --second-try … … 594 592 export DENY_MODS=" " 595 593 fi 596 if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg `" ]; then594 if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg 2> /dev/null`" ]; then 597 595 # Do not try to load usb storage when dealing with OBDR it makes the modprobe hang :-( 598 596 export DENY_MODS="usb-storage $DENY_MODS" … … 636 634 fi 637 635 638 if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg `" ] || [ "`grep -i ' udev' /tmp/mondo-restore.cfg`" ]; then636 if [ "`grep -i 'obdr ' /tmp/mondo-restore.cfg 2>/dev/null`" ] || [ "`grep -i ' udev' /tmp/mondo-restore.cfg 2>/dev/null`" ]; then 639 637 HandleTape 640 638 ExtractDataDisksAndLoadModules … … 647 645 CD_MOUNTED_OK=yes 648 646 ExtractDataDisksAndLoadModules 649 elif [ "`grep -i usb= /proc/cmdline`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg | grep media-type`" ]; then647 elif [ "`grep -i usb= /proc/cmdline`" ] || [ "`grep -i usb /tmp/mondo-restore.cfg 2>/dev/null | grep media-type`" ]; then 650 648 . /sbin/start-usb 651 649 … … 718 716 dmesg >> $LOGFILE 719 717 720 #------------------------------- 721 #ABSORBENTANDYELLOWANDPOROUSISHE#;# --- don't touch this either :) 722 #------------------------------- 718 ide-opt 723 719 724 720 #ctrlaltdel soft
Note:
See TracChangeset
for help on using the changeset viewer.