Changeset 3542 in MondoRescue for branches/3.2/mondo/src/restore-scripts/mondo/mr-stablilo-me
- Timestamp:
- Mar 24, 2016, 5:48:03 PM (8 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.