- Timestamp:
- Mar 24, 2016, 5:48:03 PM (9 years ago)
- Location:
- branches/3.2
- Files:
-
- 1 deleted
- 8 edited
- 16 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3541 r3542 2142 2142 fi 2143 2143 if [ -e "$MONDO_SHARE/restore-scripts" ]; then 2144 cp -Rdf $MONDO_SHARE/restore-scripts/* .2>> $LOGFILE2144 cp -Rdf $MONDO_SHARE/restore-scripts/* $bigdir/usr/bin 2>> $LOGFILE 2145 2145 [ $? -ne 0 ] && [ _"$MONDO_SHARE" != _"" ] && Die "Cannot find/install $MONDO_SHARE/restore-scripts" 2146 2146 fi 2147 2147 if [ -d "/lib/dev-state" ]; then 2148 cp -a /lib/dev-state ./lib/ 2>> $MINDI_TMP/$$.log || LogAll "ERROR: Unable to handle /lib/dev-state" $MINDI_TMP/$$.log2148 cp -a /lib/dev-state $bigdir/lib/ 2>> $MINDI_TMP/$$.log || LogAll "ERROR: Unable to handle /lib/dev-state" $MINDI_TMP/$$.log 2149 2149 fi 2150 2150 TOTAL_BIGDIR_SIZE=`du -sk $bigdir | cut -f1` … … 2263 2263 LogFile "INFO: Copying $LDLINUXE64 to $efidir" 2264 2264 cp $LDLINUXE64 $efidir 2>> $LOGFILE || Die "Cannot copy $LDLINUXE64 to $efidir). Did you run out of disk space?" 2265 cp $LDLINUXE64/../libutil.c32 $efidir 2>> $LOGFILE || Die "Cannot copy $LDLINUXE64 to $efidir). Did you run out of disk space?" 2265 2266 fi 2266 2267 fi -
branches/3.2/mindi/rootfs/etc/init.d/rcS
r3526 r3542 1129 1129 LogIt "Executing final script $post" 1130 1130 if [ "`echo $post | grep -E '^/mnt/RESTORING'`" ]; then 1131 m ount-me1131 mr-mount-me 1132 1132 fi 1133 1133 chmod 755 $post 1134 1134 $post 1135 1135 if [ "`echo $post | grep -E '^/mnt/RESTORING'`" ]; then 1136 unmount-me1136 mr-unmount-me 1137 1137 fi 1138 1138 fi -
branches/3.2/mindi/rootfs/usr/sbin/post-init
r3279 r3542 50 50 fi 51 51 52 for i in m ount-meunmount-me mondorestore ; do52 for i in mr-mount-me mr-unmount-me mondorestore ; do 53 53 if which $i > /dev/null 2> /dev/null ; then 54 54 LogIt "$i found" -
branches/3.2/mondo-doc/mondorescue-howto.sgml
r3527 r3542 1960 1960 <row> 1961 1961 <entry> 1962 bash# m ount-me1962 bash# mr-mount-me 1963 1963 </entry> 1964 1964 </row> … … 1984 1984 <row> 1985 1985 <entry> 1986 bash# unmount-me1986 bash# mr-unmount-me 1987 1987 1988 1988 </entry> -
branches/3.2/mondo/src/mondorestore/mondo-prep.c
r3531 r3542 1473 1473 1474 1474 // mark relevant partition as bootable 1475 mr_asprintf(tmp1,"m ake-me-bootable /tmp/mountlist.txt %s",drivename);1475 mr_asprintf(tmp1,"mr-make-me-bootable /tmp/mountlist.txt %s",drivename); 1476 1476 call_program_and_get_last_line_of_output(tmp1); 1477 1477 mr_free(tmp1); -
branches/3.2/mondo/src/mondorestore/mondo-rstr-tools.c
r3439 r3542 591 591 run_program_and_log_output("touch " MNT_RESTORING "/var/log/pacct", FALSE); 592 592 run_program_and_log_output("touch " MNT_RESTORING "/var/account/pacct", FALSE); 593 if (run_program_and_log_output("ls " MNT_RESTORING " /tmp", FALSE)) {593 if (run_program_and_log_output("ls -al " MNT_RESTORING " /tmp", FALSE)) { 594 594 run_program_and_log_output("chmod 1777 " MNT_RESTORING "/tmp", FALSE); 595 595 } … … 1399 1399 /* Only try to adapt grub here first if the mountlist wasn't changed before */ 1400 1400 if (! mntlistchg) { 1401 mr_asprintf(command, " stabgrub-me %s", boot_device);1401 mr_asprintf(command, "mr-stabgrub-me %s", boot_device); 1402 1402 res = run_program_and_log_output(command, 1); 1403 1403 mr_free(command); … … 1444 1444 newtResume(); 1445 1445 } 1446 mr_asprintf(command, " stabgrub-me %s", boot_device);1446 mr_asprintf(command, "mr-stabgrub-me %s", boot_device); 1447 1447 res = run_program_and_log_output(command, 1); 1448 1448 mr_free(command); … … 1463 1463 } else { 1464 1464 /* nuke mode */ 1465 if (!run_program_and_log_output("which grub-MR", FALSE)) {1466 log_msg(1, "Yay! grub-MRfound...");1467 mr_asprintf(command, " grub-MR%s /"MOUNTLIST_FNAME_STUB, boot_device);1465 if (!run_program_and_log_output("which mr-grub", FALSE)) { 1466 log_msg(1, "Yay! mr-grub found..."); 1467 mr_asprintf(command, "mr-grub %s /"MOUNTLIST_FNAME_STUB, boot_device); 1468 1468 log_msg(1, "command = %s", command); 1469 1469 } else { 1470 1470 // Or grub2-install 1471 1471 mr_asprintf(command, "chroot " MNT_RESTORING " grub-install %s", boot_device); 1472 log_msg(1, "WARNING - grub-MRnot found; using grub-install");1472 log_msg(1, "WARNING - mr-grub not found; using grub-install"); 1473 1473 } 1474 1474 mvaddstr_and_log_it(g_currentY, 0, "Running GRUB... "); … … 1489 1489 ("GRUB ran w/error(s). See %s for more info.", MONDO_LOGFILE); 1490 1490 log_msg(1, "Type:-"); 1491 log_msg(1, " m ount-me");1491 log_msg(1, " mr-mount-me"); 1492 1492 log_msg(1, " chroot " MNT_RESTORING); 1493 1493 log_msg(1, " mount /boot"); 1494 1494 log_msg(1, " grub-install '(hd0)'"); 1495 1495 log_msg(1, " exit"); 1496 log_msg(1, " unmount-me");1496 log_msg(1, " mr-unmount-me"); 1497 1497 log_msg(1, 1498 1498 "If you're really stuck, please e-mail the mailing list."); … … 1533 1533 0, 1534 1534 "Modifying fstab and elilo.conf... "); 1535 mr_asprintf(command, " stabelilo-me");1535 mr_asprintf(command, "mr-stabelilo-me"); 1536 1536 res = run_program_and_log_output(command, 3); 1537 1537 mr_free(command); … … 1609 1609 0, 1610 1610 "Modifying fstab and lilo.conf, and running LILO... "); 1611 mr_asprintf(command, " stablilo-me");1611 mr_asprintf(command, "mr-stablilo-me"); 1612 1612 res = run_program_and_log_output(command, 3); 1613 1613 mr_free(command); … … 1735 1735 } 1736 1736 popup_and_get_string("Boot device", "Please confirm/enter the boot device. If in doubt, try /dev/hda", boot_device, MAX_STR_LEN / 4); 1737 mr_asprintf(command, " stabraw-me %s", boot_device);1737 mr_asprintf(command, "mr-stabraw-me %s", boot_device); 1738 1738 res = run_program_and_log_output(command, 3); 1739 1739 mr_free(command); … … 1747 1747 } else { 1748 1748 /* nuke mode */ 1749 mr_asprintf(command, " raw-MR%s /"MOUNTLIST_FNAME_STUB, boot_device);1749 mr_asprintf(command, "mr-raw %s /"MOUNTLIST_FNAME_STUB, boot_device); 1750 1750 log_msg(2, "run_raw_mbr() --- command='%s'", command); 1751 1751 -
branches/3.2/mondo/src/mondorestore/mondorestore.c
r3510 r3542 2045 2045 mr_asprintf(fstab_fname, "/tmp/fstab"); 2046 2046 } 2047 mr_asprintf(tmp1, " label-partitions-as-necessary %s < %s >> %s 2>> %s", g_mountlist_fname, fstab_fname, MONDO_LOGFILE, MONDO_LOGFILE);2047 mr_asprintf(tmp1, "mr-label-partitions-as-necessary %s < %s >> %s 2>> %s", g_mountlist_fname, fstab_fname, MONDO_LOGFILE, MONDO_LOGFILE); 2048 2048 mr_free(fstab_fname); 2049 2049 … … 2051 2051 mr_free(tmp1); 2052 2052 if (res) { 2053 log_to_screen(" label-partitions-as-necessary returned an error");2053 log_to_screen("mr-label-partitions-as-necessary returned an error"); 2054 2054 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 2055 2055 } else { … … 2191 2191 mvaddstr_and_log_it(g_currentY, 0, "Using tune2fs/tune4fs to identify your ext2,3,4 partitions"); 2192 2192 2193 mr_asprintf(tmp1, " label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", "/tmp/mountlist.txt", MONDO_LOGFILE, MONDO_LOGFILE);2193 mr_asprintf(tmp1, "mr-label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", "/tmp/mountlist.txt", MONDO_LOGFILE, MONDO_LOGFILE); 2194 2194 res = run_program_and_log_output(tmp1, TRUE); 2195 2195 mr_free(tmp1); 2196 2196 if (res) { 2197 log_to_screen(" label-partitions-as-necessary returned an error");2197 log_to_screen("mr-label-partitions-as-necessary returned an error"); 2198 2198 mvaddstr_and_log_it(g_currentY++, 74, "Failed."); 2199 2199 } else { -
branches/3.2/mondo/src/restore-scripts/mondo/Makefile.am
r3450 r3542 1 1 restoremondodir = $(pkgdatadir)/restore-scripts/mondo 2 restoremondo_SCRIPTS = grub-MR hack-fstab hack-grub hack-lilohack-elilo \3 label-partitions-as-necessary \4 m ake-me-bootable mount-me mount-subroutine-me raw-MR\5 stabgrub-me stablilo-mestabelilo-me \6 stabraw-me unmount-meunmount-subroutine-me2 restoremondo_SCRIPTS = mr-grub mr-hack-fstab mr-hack-lilo mr-hack-elilo \ 3 mr-label-partitions-as-necessary \ 4 mr-make-me-bootable mr-mount-me mr-mount-subroutine-me mr-raw \ 5 mr-stabgrub-me mr-stablilo-me mr-stabelilo-me \ 6 mr-stabraw-me mr-unmount-me mr-unmount-subroutine-me -
branches/3.2/mondo/src/restore-scripts/mondo/mr-grub
r3541 r3542 3 3 # $Id$ 4 4 # 5 # grub-MR------ a rudimentary replacement for grub-install5 # mr-grub ------ a rudimentary replacement for grub-install 6 6 # 7 7 # … … 93 93 94 94 if [ "$#" -ne "2" ] ; then 95 Die " grub-MR <boot drive> <mountlist filename>; e.g. grub-MR/dev/hda /tmp/mountlist.txt"95 Die "mr-grub <boot drive> <mountlist filename>; e.g. mr-grub /dev/hda /tmp/mountlist.txt" 96 96 fi 97 97 [ ! -f "$2" ] && Die "mountlist file not found" … … 191 191 # --------------------------------- 192 192 193 echo "Now I'll use grub-install.patched" >> $LOGFILE194 cp -f `which grub-install.patched` /mnt/RESTORING/sbin195 chroot /mnt/RESTORING grub-install.patched $1 >> $LOGFILE 2>> $LOGFILE193 echo "Now I'll use mr-grub-install.patched" >> $LOGFILE 194 cp -f `which mr-grub-install.patched` /mnt/RESTORING/sbin 195 chroot /mnt/RESTORING mr-grub-install.patched $1 >> $LOGFILE 2>> $LOGFILE 196 196 res=$? 197 echo " grub-install.patched returned $res" >> $LOGFILE197 echo "mr-grub-install.patched returned $res" >> $LOGFILE 198 198 [ "$res" -eq "0" ] && exit 0 199 199 … … 220 220 [ "$res" -eq "0" ] && exit 0 221 221 222 echo " grub-MRreturned res=$res" >> $LOGFILE222 echo "mr-grub returned res=$res" >> $LOGFILE 223 223 224 224 exit $res -
branches/3.2/mondo/src/restore-scripts/mondo/mr-hack-fstab
r3541 r3542 110 110 # ----------------- main --------------- 111 111 112 LogIt " hack-fstab --- starting"112 LogIt "mr-hack-fstab --- starting" 113 113 114 114 if [ "$#" -ne "4" ] ; then 115 LogIt " hack-fstab <old mountlist> <old fstab> <new mountlist> <new fstab>" 1115 LogIt "mr-hack-fstab <old mountlist> <old fstab> <new mountlist> <new fstab>" 1 116 116 LogIt "NB: the new fstab file is outgoing; all other files are incoming." 1 117 117 exit 1 118 118 fi 119 119 120 LogIt " hack-fstab '$1' '$2' '$3' '$4'"120 LogIt "mr-hack-fstab '$1' '$2' '$3' '$4'" 121 121 122 122 old_mountlist=$1 … … 141 141 142 142 LogIt "Finished writing to outfile ($outfile)" 143 LogIt " hack-fstab --- leaving"143 LogIt "mr-hack-fstab --- leaving" 144 144 exit 0 -
branches/3.2/mondo/src/restore-scripts/mondo/mr-hack-lilo
r3541 r3542 111 111 # ------------------ main ------------------ 112 112 113 LogIt " hack-lilo --- starting"113 LogIt "mr-hack-lilo --- starting" 114 114 115 115 bootlistfile=/tmp/partitions-to-make-bootable.txt … … 117 117 118 118 if [ "$#" -ne "6" ] ; then 119 LogIt " hack-lilo <old mountlist> <old fstab> <old lilo> <new mountlist> <new fstab> <new lilo>" 1119 LogIt "mr-hack-lilo <old mountlist> <old fstab> <old lilo> <new mountlist> <new fstab> <new lilo>" 1 120 120 LogIt "NB: the new lilo file is outgoing; all others are incoming." 1 121 121 exit 1 … … 134 134 sort -u $bootlistfile -o $bootlistfile 135 135 136 #------ disabled 12/10/01 (doesn't do anything anyway *g*) 137 #make-me-bootable $bootlistfile > /tmp/make-me-bootable.log 2> /tmp/make-me-bootable.log 138 139 LogIt "hack-lilo --- leaving" 136 LogIt "mr-hack-lilo --- leaving" 140 137 exit 0 -
branches/3.2/mondo/src/restore-scripts/mondo/mr-label-partitions-as-necessary
r3541 r3542 106 106 LogIt "Identifying your drives with FS tune tool" 107 107 if [ "$#" -ne "1" ] ; then 108 LogIt " label-partitions-as-necessary /tmp/mountlist.txt < /tmp/fstab.new" 1108 LogIt "mr-label-partitions-as-necessary /tmp/mountlist.txt < /tmp/fstab.new" 1 109 109 exit 1 110 110 fi -
branches/3.2/mondo/src/restore-scripts/mondo/mr-make-me-bootable
r3541 r3542 1 1 #!/bin/sh 2 # 3 # $Id$ 4 # 2 5 3 6 4 7 if [ "$#" -ne "2" ] && [ "$#" -ne "3" ] ; then 5 echo "m ake-me-bootable <fname> <drive> [noaction]"8 echo "mr-make-me-bootable <fname> <drive> [noaction]" 6 9 exit 1 7 10 fi -
branches/3.2/mondo/src/restore-scripts/mondo/mr-mount-me
r3541 r3542 1 1 #!/bin/sh 2 # 3 # $Id$ 4 # 2 5 3 6 mountlist=/tmp/mountlist.txt 4 7 5 8 if [ "$#" -ne "0" ] ;then 6 echo "m ount-me <no params>"9 echo "mr-mount-me <no params>" 7 10 echo "...mountlist is assumed to be at $mountlist" 8 11 exit 1 … … 19 22 grep " $i " $mountlist >> $mountlist.sorted 20 23 done 21 m ount-subroutine-me < $mountlist.sorted24 mr-mount-subroutine-me < $mountlist.sorted 22 25 exit $? -
branches/3.2/mondo/src/restore-scripts/mondo/mr-mount-subroutine-me
r3541 r3542 1 1 #!/bin/sh 2 # 3 # $Id$ 4 # 2 5 3 LogIt "m ount-subroutine-me --- starting"6 LogIt "mr-mount-subroutine-me --- starting" 4 7 if [ "$#" -ne "0" ] ; then 5 LogIt "m ount-subroutine-me < mountlist" 18 LogIt "mr-mount-subroutine-me < mountlist" 1 6 9 exit 1 7 10 fi 8 11 9 12 # ----------- mount partitions to be restored to -------------- 10 11 #echo "START mount-me"12 13 13 14 errors=0 … … 64 65 fi 65 66 66 LogIt "m ount-subroutine-me --- leaving"67 LogIt "mr-mount-subroutine-me --- leaving" 67 68 exit $errors -
branches/3.2/mondo/src/restore-scripts/mondo/mr-raw
r3541 r3542 1 1 #!/bin/sh 2 # 3 # $Id$ 4 # 2 5 3 6 if [ "$#" -lt "1" ] ; then 4 echo " raw-MR<dev>" >> /dev/stderr7 echo "mr-raw <dev>" >> /dev/stderr 5 8 exit 1 6 9 fi -
branches/3.2/mondo/src/restore-scripts/mondo/mr-stabelilo-me
r3541 r3542 6 6 QuitIfNotFound() { 7 7 if [ ! -f "$1" ] ; then 8 LogIt "( stabelilo-me) Where's $1? I cannot continue." 18 LogIt "(mr-stabelilo-me) Where's $1? I cannot continue." 1 9 9 exit 1 10 10 fi … … 130 130 # --------------------------------- main ------------------------------- 131 131 132 LogIt " stabelilo-me --- starting"132 LogIt "mr-stabelilo-me --- starting" 133 133 LocateOldFstab 134 134 LocateOldElilo … … 150 150 LogIt "Modifying fstab..." 2 151 151 outval=0 152 hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab152 mr-hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab 153 153 res=$? 154 154 if [ "$res" -ne "0" ] ; then 155 echo "Warning - hack-fstab failed"155 echo "Warning - mr-hack-fstab failed" 156 156 outval=$(($outval+$res)) 157 157 fi 158 158 159 159 LogIt "Modifying elilo.conf. Please wait..." 2 160 hack-elilo $old_mountlist $old_fstab $old_liloconf $new_mountlist $new_fstab $new_liloconf160 mr-hack-elilo $old_mountlist $old_fstab $old_liloconf $new_mountlist $new_fstab $new_liloconf 161 161 res=$? 162 162 outval=$(($outval+$res)) … … 189 189 LogIt "/etc/fstab and /etc/elilo.conf were modified ok." 3 190 190 fi 191 LogIt " stabelilo-me --- leaving"191 LogIt "mr-stabelilo-me --- leaving" 192 192 exit $outval 193 193 -
branches/3.2/mondo/src/restore-scripts/mondo/mr-stabgrub-me
r3541 r3542 8 8 QuitIfNotFound() { 9 9 if [ ! -f "$1" ] ; then 10 LogIt "( stabgrub-me) Where's $1? I cannot continue." 110 LogIt "(mr-stabgrub-me) Where's $1? I cannot continue." 1 11 11 exit 1 12 12 fi … … 87 87 88 88 89 BEFORE= stabgrub-me.PRE89 BEFORE=mr-stabgrub-me.PRE 90 90 91 91 MakeBackups() { … … 113 113 114 114 if [ "$#" -ne "1" ] ; then 115 LogIt " stabgrub-me </dev/bootdrive>"115 LogIt "mr-stabgrub-me </dev/bootdrive>" 116 116 exit 1 117 117 fi … … 119 119 bootdrive=$1 120 120 121 LogIt " stabgrub-me '$1' --- starting"121 LogIt "mr-stabgrub-me '$1' --- starting" 122 122 LocateOldFstab 123 123 LocateOldGrub … … 147 147 LogIt "where_they_live = $where_they_live" 148 148 149 LogIt "Calling hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab"149 LogIt "Calling mr-hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab" 150 150 151 151 outval=0 152 hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab152 mr-hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab 153 153 res=$? 154 154 if [ "$res" -ne "0" ] ; then 155 LogIt "Warning - hack-fstab failed"155 LogIt "Warning - mr-hack-fstab failed" 156 156 outval=$(($outval+$res)) 157 157 else 158 LogIt "Back from hack-fstab OK" 1158 LogIt "Back from mr-hack-fstab OK" 1 159 159 fi 160 160 … … 183 183 # cd .. 184 184 LogIt "Running grub..." 2 185 LogIt " grub-MR$bootdrive $new_mountlist"186 grub-MR$bootdrive $new_mountlist >> $LOGFILE 2>> $LOGFILE185 LogIt "mr-grub $bootdrive $new_mountlist" 186 mr-grub $bootdrive $new_mountlist >> $LOGFILE 2>> $LOGFILE 187 187 grub_res=$? 188 188 if [ "$grub_res" -ne "0" ] ; then 189 LogIt " grub-MRfailed. Running grub-install..."189 LogIt "mr-grub failed. Running grub-install..." 190 190 chroot /mnt/RESTORING grub-install '(hd0)' >> $LOGFILE 2>> $LOGFILE 191 191 grub_res=$? 192 192 else 193 LogIt " grub-MRran ok." 2193 LogIt "mr-grub ran ok." 2 194 194 fi 195 195 if [ "$grub_res" -ne "0" ] ; then … … 217 217 LogIt "/etc/fstab was modified ok. GRUB ran ok. " 218 218 fi 219 LogIt " stabgrub-me --- leaving"219 LogIt "mr-stabgrub-me --- leaving" 220 220 echo -en "\n\n\n" 221 221 exit $outval -
branches/3.2/mondo/src/restore-scripts/mondo/mr-stablilo-me
r3541 r3542 1 1 #!/bin/sh 2 2 # 3 # $Id$ 3 4 # 4 # 2003/04/095 # - changed new_* paths from /tmp to /mnt/RESTORING/etc6 #7 #8 # created in mid-2002?9 ######################################################################10 11 5 12 6 13 7 QuitIfNotFound() { 14 8 if [ ! -f "$1" ] ; then 15 LogIt "( stablilo-me) Where's $1? I cannot continue." 19 LogIt "(mr-stablilo-me) Where's $1? I cannot continue." 1 16 10 exit 1 17 11 fi … … 99 93 # --------------------------------- main ------------------------------- 100 94 101 LogIt " stablilo-me --- starting"95 LogIt "mr-stablilo-me --- starting" 102 96 LocateOldFstab 103 97 old_mountlist=/tmp/mountlist.original … … 118 112 LogIt "Modifying fstab..." 2 119 113 outval=0 120 hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab114 mr-hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab 121 115 res=$? 122 116 if [ "$res" -ne "0" ] ; then 123 echo "Warning - hack-fstab failed"117 echo "Warning - mr-hack-fstab failed" 124 118 outval=$(($outval+$res)) 125 119 fi 126 120 127 121 LogIt "Modifying lilo.conf. Please wait..." 2 128 hack-lilo $old_mountlist $old_fstab $old_liloconf $new_mountlist $new_fstab $new_liloconf122 mr-hack-lilo $old_mountlist $old_fstab $old_liloconf $new_mountlist $new_fstab $new_liloconf 129 123 res=$? 130 124 outval=$(($outval+$res)) … … 170 164 LogIt "/etc/fstab and /etc/lilo.conf were modified ok. LILO ran ok." 3 171 165 fi 172 LogIt " stablilo-me --- leaving"166 LogIt "mr-stablilo-me --- leaving" 173 167 exit $outval 174 168 -
branches/3.2/mondo/src/restore-scripts/mondo/mr-stabraw-me
r3541 r3542 8 8 QuitIfNotFound() { 9 9 if [ ! -f "$1" ] ; then 10 LogIt "( stabraw-me) Where's $1? I cannot continue." 110 LogIt "(mr-stabraw-me) Where's $1? I cannot continue." 1 11 11 exit 1 12 12 fi … … 74 74 75 75 if [ "$#" -ne "1" ] ; then 76 LogIt " stabraw-me </dev/bootdrive>"76 LogIt "mr-stabraw-me </dev/bootdrive>" 77 77 exit 1 78 78 fi … … 80 80 bootdrive=$1 81 81 82 LogIt " stabraw-me --- starting"82 LogIt "mr-stabraw-me --- starting" 83 83 LocateOldFstab 84 84 old_mountlist=/tmp/mountlist.original … … 96 96 LogIt "Modifying fstab..." 2 97 97 outval=0 98 hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab98 mr-hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab 99 99 res=$? 100 100 if [ "$res" -ne "0" ] ; then 101 echo "Warning - hack-fstab failed"101 echo "Warning - mr-hack-fstab failed" 102 102 outval=$(($outval+$res)) 103 103 fi … … 119 119 cd $where_they_live 120 120 cd .. 121 raw-MR$bootdrive121 mr-raw $bootdrive 122 122 mbr_res=$? 123 123 if [ "$mbr_res" -ne "0" ] ; then … … 138 138 LogIt "/etc/fstab was modified ok; mbr was installed ok, too. " 139 139 fi 140 LogIt " stabraw-me --- leaving"140 LogIt "mr-stabraw-me --- leaving" 141 141 echo -en "\n\n\n" 142 142 exit $outval -
branches/3.2/mondo/src/restore-scripts/mondo/mr-unmount-me
r3541 r3542 1 1 #!/bin/sh 2 # 3 # $Id$ 4 # 2 5 3 6 mountlist=/tmp/mountlist.txt 4 7 5 8 if [ "$#" -ne "0" ] ;then 6 echo " unmount-me <no params>"9 echo "mr-unmount-me <no params>" 7 10 echo "...mountlist is assumed to be at $mountlist" 8 11 exit 1 9 12 fi 10 13 11 #unmount-subroutine-me < $mountlist12 #unmount-subroutine-me < $mountlist13 14 #for j in 1 2 ; do15 14 for i in `mount | grep /mnt/RESTORING | cut -d' ' -f3 | sort -r`; do 16 15 umount $i -
branches/3.2/mondo/src/restore-scripts/mondo/mr-unmount-subroutine-me
r3541 r3542 1 1 #!/bin/sh 2 # 3 # $Id$ 4 # 2 5 3 LogIt " unmount-subroutine-me --- starting"6 LogIt "mr-unmount-subroutine-me --- starting" 4 7 if [ "$#" -ne "0" ] ; then 5 LogIt " unmount-subroutine-me < mountlist" 18 LogIt "mr-unmount-subroutine-me < mountlist" 1 6 9 exit 1 7 10 fi … … 66 69 fi 67 70 68 LogIt " unmount-subroutine-me --- leaving (retval=$retval)"71 LogIt "mr-unmount-subroutine-me --- leaving (retval=$retval)" 69 72 exit $retval 70 73
Note:
See TracChangeset
for help on using the changeset viewer.