source: MondoRescue/branches/2.2.9/mondo/src/restore-scripts/mondo/unmount-me

Last change on this file was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
  • Property svn:executable set to *
File size: 434 bytes
Line 
1#!/bin/sh
2
3mountlist=/tmp/mountlist.txt
4
5if [ "$#" -ne "0" ] ;then
6 echo "unmount-me <no params>"
7 echo "...mountlist is assumed to be at $mountlist"
8 exit 1
9fi
10
11#unmount-subroutine-me < $mountlist
12#unmount-subroutine-me < $mountlist
13
14#for j in 1 2 ; do
15for i in `mount | grep /mnt/RESTORING | cut -d' ' -f3 | sort -r`; do
16 umount $i
17done
18
19for i in `cut -d' ' -f1 /proc/swaps | grep /dev`; do
20 swapoff $i
21done
22
23exit 0
24
Note: See TracBrowser for help on using the repository browser.