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-stablilo-me

    r3541 r3542  
    11#!/bin/sh
    22#
     3# $Id$
    34#
    4 # 2003/04/09
    5 # - changed new_* paths from /tmp to /mnt/RESTORING/etc
    6 #
    7 #
    8 # created in mid-2002?
    9 ######################################################################
    10 
    115
    126
    137QuitIfNotFound() {
    148    if [ ! -f "$1" ] ; then
    15     LogIt "(stablilo-me) Where's $1? I cannot continue." 1
     9    LogIt "(mr-stablilo-me) Where's $1? I cannot continue." 1
    1610    exit 1
    1711    fi
     
    9993# --------------------------------- main -------------------------------
    10094
    101 LogIt "stablilo-me --- starting"
     95LogIt "mr-stablilo-me --- starting"
    10296LocateOldFstab
    10397old_mountlist=/tmp/mountlist.original
     
    118112LogIt "Modifying fstab..." 2
    119113outval=0
    120 hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab
     114mr-hack-fstab $old_mountlist $old_fstab $new_mountlist $new_fstab
    121115res=$?
    122116if [ "$res" -ne "0" ] ; then
    123     echo "Warning - hack-fstab failed"
     117    echo "Warning - mr-hack-fstab failed"
    124118    outval=$(($outval+$res))
    125119fi
    126120   
    127121LogIt "Modifying lilo.conf. Please wait..." 2
    128 hack-lilo $old_mountlist $old_fstab $old_liloconf $new_mountlist $new_fstab $new_liloconf
     122mr-hack-lilo $old_mountlist $old_fstab $old_liloconf $new_mountlist $new_fstab $new_liloconf
    129123res=$?
    130124outval=$(($outval+$res))
     
    170164    LogIt "/etc/fstab and /etc/lilo.conf were modified ok. LILO ran ok." 3
    171165fi
    172 LogIt "stablilo-me --- leaving"
     166LogIt "mr-stablilo-me --- leaving"
    173167exit $outval
    174168
Note: See TracChangeset for help on using the changeset viewer.