Changeset 1158 in MondoRescue for branches/stable/mindi/rootfs
- Timestamp:
- Feb 14, 2007, 2:32:50 AM (17 years ago)
- Location:
- branches/stable/mindi/rootfs/sbin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/rootfs/sbin/find-and-mount-cdrom
r1087 r1158 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 [ "`grep "using-cdstream 9 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 [ "`grep "using-cdstream 79 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 -
branches/stable/mindi/rootfs/sbin/hack-cfg-if-necessary
r275 r1158 16 16 LogIt "OK, we've found /mnt/cdrom/archives/*; great." 17 17 18 if ! grep "backup-media-type 18 if ! grep "backup-media-type=iso" /tmp/mondo-restore.cfg ; then 19 19 LogIt "Config file is fine, BTW." 20 20 exit 0 … … 23 23 LogIt "Re-jigging mondo-restore.cfg because you backed up to ISOs and then burned them to CDs" 1 24 24 mv -f /tmp/mondo-restore.cfg /tmp/mrco 25 sed 's/backup-media-type iso/backup-media-typecdr/' /tmp/mrco > /tmp/mondo-restore.cfg25 sed 's/backup-media-type=iso/backup-media-type=cdr/' /tmp/mrco > /tmp/mondo-restore.cfg 26 26 LogIt "Done re-jigging. Yay." 27 27 exit 0 -
branches/stable/mindi/rootfs/sbin/init
r1087 r1158 83 83 LoadKeymap() { 84 84 local fname 85 fname=`grep keymap-lives-here /tmp/mondo-restore.cfg | cut -d' 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 … … 101 101 cd $GROOVY 102 102 [ "$1" != "" ] && tapedev=$1 103 [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo-restore.cfg | tr -s ' ' ' ' | cut -d' 103 [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo-restore.cfg | tr -s ' ' ' ' | cut -d'=' -f2` 104 104 # tar -zxf $tapedev 105 105 dd if=$tapedev bs=32k count=1024 | tar -zx … … 107 107 if [ "$res" -eq "0" ] ; then 108 108 grep -v media-dev /tmp/mondo-restore.cfg > /tmp/mr.cfg 109 echo "media-dev 109 echo "media-dev=$tapedev" >> /tmp/mr.cfg 110 110 cp -f /tmp/mr.cfg /tmp/mondo-restore.cfg 111 111 fi -
branches/stable/mindi/rootfs/sbin/start-nfs
r802 r1158 11 11 12 12 # Get info from config file 13 ipdev=`grep nfs-dev /tmp/mondo-restore.cfg | cut -d' 14 ipaddress=`grep nfs-client-ipaddr /tmp/mondo-restore.cfg | cut -d' 15 ipnetmask=`grep nfs-client-netmask /tmp/mondo-restore.cfg | cut -d' 16 ipbroadcast=`grep nfs-client-broadcast /tmp/mondo-restore.cfg | cut -d' 17 ipgateway=`grep nfs-client-defgw /tmp/mondo-restore.cfg | cut -d' 13 ipdev=`grep nfs-dev /tmp/mondo-restore.cfg | cut -d'=' -f2-` 14 ipaddress=`grep nfs-client-ipaddr /tmp/mondo-restore.cfg | cut -d'=' -f2-` 15 ipnetmask=`grep nfs-client-netmask /tmp/mondo-restore.cfg | cut -d'=' -f2-` 16 ipbroadcast=`grep nfs-client-broadcast /tmp/mondo-restore.cfg | cut -d'=' -f2-` 17 ipgateway=`grep nfs-client-defgw /tmp/mondo-restore.cfg | cut -d'=' -f2-` 18 18 ipconf="" 19 export nfsmount=`grep nfs-server-mount /tmp/mondo-restore.cfg | cut -d' 20 export imgname=`grep iso-prefix /tmp/mondo-restore.cfg | cut -d' 19 export nfsmount=`grep nfs-server-mount /tmp/mondo-restore.cfg | cut -d'=' -f2-` 20 export imgname=`grep iso-prefix /tmp/mondo-restore.cfg | cut -d'=' -f2-` 21 21 if [ "$imgname" = "" ]; then 22 22 export imgname="mondorescue" 23 23 fi 24 export dirimg=`grep nfs-server-path /tmp/mondo-restore.cfg | cut -d' 24 export dirimg=`grep nfs-server-path /tmp/mondo-restore.cfg | cut -d'=' -f2-` 25 25 if [ "$dirimg" = "" ]; then 26 26 export dirimg="/"
Note:
See TracChangeset
for help on using the changeset viewer.