Changeset 1158 in MondoRescue for branches/stable/mindi
- Timestamp:
- Feb 14, 2007, 2:32:50 AM (17 years ago)
- Location:
- branches/stable/mindi
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r1143 r1158 517 517 echo -en "Adding the following keyboard mapping tables: " 518 518 mkdir -p $bigdir/tmp 519 echo "keymap-lives-here /etc/console/boottime.kmap.gz"> $MINDI_TMP/mondo-restore.cfg519 echo "keymap-lives-here=/etc/console/boottime.kmap.gz" >> $MINDI_TMP/mondo-restore.cfg 520 520 KBDEPTH=0 521 521 mkdir -p $bigdir/etc/console … … 568 568 echo -en "Adding the following keyboard mapping tables: " 569 569 mkdir -p $bigdir/tmp 570 echo "keymap-lives-here $mappath"> $MINDI_TMP/mondo-restore.cfg570 echo "keymap-lives-here=$mappath" >> $MINDI_TMP/mondo-restore.cfg 571 571 KBDEPTH=0 572 572 AddKeyboardMappingFile $mappath … … 2244 2244 # master boot record, too 2245 2245 if [ _"$MONDORESTORECFG" != _"" ]; then 2246 i=`grep bootloader.device $MONDORESTORECFG | cut -d' 2246 i=`grep bootloader.device $MONDORESTORECFG | cut -d'=' -f2 2> /dev/null` 2247 2247 if [ "$i" ] ; then 2248 2248 LogIt "Backing up $i's MBR" … … 3128 3128 echo "-----------------------------------" >> $LOGFILE 3129 3129 3130 CDRECOVERY=`grep use-cdrecovery $MONDORESTORECFG | cut -d' 3131 NOT_BOOT=`grep non-bootable $MONDORESTORECFG | cut -d' 3132 USE_LILO=`grep use-lilo $MONDORESTORECFG | cut -d' 3133 EXCLUDE_DEVS=`grep excluded-devs $MONDORESTORECFG | cut -d' 3134 NFS_DEV=`grep nfs-dev $MONDORESTORECFG | cut -d' 3135 VALUE=`grep image-devs $MONDORESTORECFG | cut -d' 3130 CDRECOVERY=`grep use-cdrecovery $MONDORESTORECFG | cut -d'=' -f2` 3131 NOT_BOOT=`grep non-bootable $MONDORESTORECFG | cut -d'=' -f2` 3132 USE_LILO=`grep use-lilo $MONDORESTORECFG | cut -d'=' -f2` 3133 EXCLUDE_DEVS=`grep excluded-devs $MONDORESTORECFG | cut -d'=' -f2` 3134 NFS_DEV=`grep nfs-dev $MONDORESTORECFG | cut -d'=' -f2` 3135 VALUE=`grep image-devs $MONDORESTORECFG | cut -d'=' -f2` 3136 3136 if [ "$VALUE" = "(null)" ] || [ "$VALUE" = "" ] ; then 3137 3137 IMAGE_DEVS="" -
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.