Changeset 274 in MondoRescue for trunk/mindi/rootfs/sbin


Ignore:
Timestamp:
Jan 3, 2006, 4:15:54 PM (18 years ago)
Author:
bcornec
Message:

merge -r272:273 $SVN_M/branches/2.06

Location:
trunk/mindi/rootfs/sbin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/rootfs/sbin/find-and-mount-cdrom

    r30 r274  
    77    for device in /dev/hd? /dev/scd? /dev/rcd? /dev/sr? /dev/cd? /dev/ide/*/*/*/*/cd /dev/scsi/*/*/*/*/cd; do
    88        [ ! "$SECOND_TRY" ] && LogIt "Trying $device"
    9         if [ "`cat /tmp/mondo-restore.cfg | grep "using-cdstream yes"`" ]; then
     9        if [ "`grep "using-cdstream yes" /tmp/mondo-restore.cfg`" ]; then
    1010        pwd=`pwd`
    1111        cd $GROOVY
     
    7777#mount /dev/fd0u1722 -t ext2 /mnt/floppy
    7878[ "$1" = "--second-try" ] && exit 1; # don't try to mount floppy drive
    79 if [ "`cat /tmp/mondo-restore.cfg | grep "using-cdstream yes"`" ] ; then
     79if [ "`grep "using-cdstream yes" /tmp/mondo-restore.cfg`" ] ; then
    8080    LogIt "Because you are using cdstream, I won't try to mount CD."
    8181    exit 0
  • trunk/mindi/rootfs/sbin/post-init

    r236 r274  
    5959cat /tmp/mountlist.txt >> /tmp/mondo-restore.log
    6060
    61 iso=`cat /proc/cmdline | grep "iso"`
    62 nuke=`cat /proc/cmdline | grep "nuke"`
     61iso=`grep iso /proc/cmdline`
     62nuke=`grep nuke /proc/cmdline`
    6363if [ "$nuke" = "" ] ; then
    64     nuke=`cat /proc/cmdline | grep -i "RESTORE "`
     64    nuke=`grep -i "RESTORE " /proc/cmdline`
    6565fi
    66 expert=`cat /proc/cmdline | grep "expert"`
    67 compare=`cat /proc/cmdline | grep "compare"`
    68 interactive=`cat /proc/cmdline | grep "interactive"`
     66expert=`grep expert /proc/cmdline`
     67compare=`grep compare /proc/cmdline`
     68interactive=`grep interactive /proc/cmdline`
    6969[ "$interactive" ]  && expert=""; # in case 'expert' crops up somewhere
    7070if which mondorestore > /dev/null 2> /dev/null ; then
     
    112112    mondorestore --nuke
    113113elif [ "$expert" ] ; then
    114     if [ "`cat /tmp/mondo-restore.cfg | grep tapedev`" ] ; then
     114    if [ "`grep tapedev /tmp/mondo-restore.cfg`" ] ; then
    115115    LogIt "-------------------TAPE MODE-------------------" 1
    116116    loc=`which mondorestore 2> /dev/null`
     
    125125            fi
    126126    fi
    127     elif [ "`cat /tmp/mondo-restore.cfg | grep using-cdstream`" ] ; then
     127    elif [ "`grep using-cdstream /tmp/mondo-restore.cfg`" ] ; then
    128128        LogIt "------------------CDSTREAM MODE------------------" 1
    129129        loc=`which mondorestore 2> /dev/null`
Note: See TracChangeset for help on using the changeset viewer.