Ignore:
Timestamp:
Mar 24, 2016, 5:48:03 PM (8 years ago)
Author:
Bruno Cornec
Message:
  • Rename all mondorestore scripts with the mr- prefix and adapt callers
  • Place these scripts in /usr/bin on the restore media
  • Fix a mindi bug where these scripts were not copied anymore with previous modifications around removal of cd
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/restore-scripts/mondo/mr-stabraw-me

    r3541 r3542  
    88QuitIfNotFound() {
    99    if [ ! -f "$1" ] ; then
    10     LogIt "(stabraw-me) Where's $1? I cannot continue." 1
     10    LogIt "(mr-stabraw-me) Where's $1? I cannot continue." 1
    1111    exit 1
    1212    fi
     
    7474
    7575if [ "$#" -ne "1" ] ; then
    76     LogIt "stabraw-me </dev/bootdrive>"
     76    LogIt "mr-stabraw-me </dev/bootdrive>"
    7777    exit 1
    7878fi
     
    8080bootdrive=$1
    8181
    82 LogIt "stabraw-me --- starting"
     82LogIt "mr-stabraw-me --- starting"
    8383LocateOldFstab
    8484old_mountlist=/tmp/mountlist.original
     
    9696LogIt "Modifying fstab..." 2
    9797outval=0
    98 hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab
     98mr-hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab
    9999res=$?
    100100if [ "$res" -ne "0" ] ; then
    101     echo "Warning - hack-fstab failed"
     101    echo "Warning - mr-hack-fstab failed"
    102102    outval=$(($outval+$res))
    103103fi
     
    119119    cd $where_they_live
    120120    cd ..
    121     raw-MR $bootdrive
     121    mr-raw $bootdrive
    122122    mbr_res=$?
    123123    if [ "$mbr_res" -ne "0" ] ; then
     
    138138    LogIt "/etc/fstab was modified ok; mbr was installed ok, too.       "
    139139fi
    140 LogIt "stabraw-me --- leaving"
     140LogIt "mr-stabraw-me --- leaving"
    141141echo -en "\n\n\n"
    142142exit $outval
Note: See TracChangeset for help on using the changeset viewer.