Changeset 274 in MondoRescue for trunk/mindi/rootfs/sbin
- Timestamp:
- Jan 3, 2006, 4:15:54 PM (19 years ago)
- Location:
- trunk/mindi/rootfs/sbin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/rootfs/sbin/find-and-mount-cdrom
r30 r274 7 7 for device in /dev/hd? /dev/scd? /dev/rcd? /dev/sr? /dev/cd? /dev/ide/*/*/*/*/cd /dev/scsi/*/*/*/*/cd; do 8 8 [ ! "$SECOND_TRY" ] && LogIt "Trying $device" 9 if [ "` cat /tmp/mondo-restore.cfg | grep "using-cdstream yes"`" ]; then9 if [ "`grep "using-cdstream yes" /tmp/mondo-restore.cfg`" ]; then 10 10 pwd=`pwd` 11 11 cd $GROOVY … … 77 77 #mount /dev/fd0u1722 -t ext2 /mnt/floppy 78 78 [ "$1" = "--second-try" ] && exit 1; # don't try to mount floppy drive 79 if [ "` cat /tmp/mondo-restore.cfg | grep "using-cdstream yes"`" ] ; then79 if [ "`grep "using-cdstream yes" /tmp/mondo-restore.cfg`" ] ; then 80 80 LogIt "Because you are using cdstream, I won't try to mount CD." 81 81 exit 0 -
trunk/mindi/rootfs/sbin/post-init
r236 r274 59 59 cat /tmp/mountlist.txt >> /tmp/mondo-restore.log 60 60 61 iso=` cat /proc/cmdline | grep "iso"`62 nuke=` cat /proc/cmdline | grep "nuke"`61 iso=`grep iso /proc/cmdline` 62 nuke=`grep nuke /proc/cmdline` 63 63 if [ "$nuke" = "" ] ; then 64 nuke=` cat /proc/cmdline | grep -i "RESTORE "`64 nuke=`grep -i "RESTORE " /proc/cmdline` 65 65 fi 66 expert=` cat /proc/cmdline | grep "expert"`67 compare=` cat /proc/cmdline | grep "compare"`68 interactive=` cat /proc/cmdline | grep "interactive"`66 expert=`grep expert /proc/cmdline` 67 compare=`grep compare /proc/cmdline` 68 interactive=`grep interactive /proc/cmdline` 69 69 [ "$interactive" ] && expert=""; # in case 'expert' crops up somewhere 70 70 if which mondorestore > /dev/null 2> /dev/null ; then … … 112 112 mondorestore --nuke 113 113 elif [ "$expert" ] ; then 114 if [ "` cat /tmp/mondo-restore.cfg | grep tapedev`" ] ; then114 if [ "`grep tapedev /tmp/mondo-restore.cfg`" ] ; then 115 115 LogIt "-------------------TAPE MODE-------------------" 1 116 116 loc=`which mondorestore 2> /dev/null` … … 125 125 fi 126 126 fi 127 elif [ "` cat /tmp/mondo-restore.cfg | grep using-cdstream`" ] ; then127 elif [ "`grep using-cdstream /tmp/mondo-restore.cfg`" ] ; then 128 128 LogIt "------------------CDSTREAM MODE------------------" 1 129 129 loc=`which mondorestore 2> /dev/null`
Note:
See TracChangeset
for help on using the changeset viewer.