source: MondoRescue/branches/3.2/mondo/src/restore-scripts/mondo/mr-mount-me@ 3542

Last change on this file since 3542 was 3542, checked in by Bruno Cornec, 8 years ago
  • 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
  • Property svn:keywords set to Id
  • Property svn:unix-mode set to 755
File size: 522 bytes
RevLine 
[1]1#!/bin/sh
[3542]2#
3# $Id: mr-mount-me 3542 2016-03-24 16:48:03Z bruno $
4#
[1]5
6mountlist=/tmp/mountlist.txt
7
8if [ "$#" -ne "0" ] ;then
[3542]9 echo "mr-mount-me <no params>"
[1]10 echo "...mountlist is assumed to be at $mountlist"
11 exit 1
12fi
13
14if [ ! -f "$mountlist" ] ; then
15 echo "I cannot find the mountlist '$mountlist'. Aborting."
16 exit 1
17fi
18
[680]19paths=`grep -vE " raid |lvm lvm" $mountlist | tr -s ' ' ' ' | cut -d' ' -f2 | sort`
[1]20> $mountlist.sorted
21for i in $paths ; do
22 grep " $i " $mountlist >> $mountlist.sorted
23done
[3542]24mr-mount-subroutine-me < $mountlist.sorted
[1]25exit $?
Note: See TracBrowser for help on using the repository browser.