source: MondoRescue/branches/stable/mondo/mondo/restore-scripts/mondo/unmount-me@ 567

Last change on this file since 567 was 567, checked in by bcornec, 18 years ago

Same for mondo: setup modes correctly in SVN and get rid of %attr an %defattr in spec files to get correct packages

  • Property svn:keywords set to Id
  • Property svn:unix-mode set to 755
File size: 434 bytes
RevLine 
[1]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
[273]19for i in `cut -d' ' -f1 /proc/swaps | grep /dev`; do
[1]20 swapoff $i
21done
22
23exit 0
24
Note: See TracBrowser for help on using the repository browser.