Last change
on this file since 3885 was 3542, checked in by Bruno Cornec, 9 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:
356 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | #
|
---|
3 | # $Id: mr-unmount-me 3542 2016-03-24 16:48:03Z bruno $
|
---|
4 | #
|
---|
5 |
|
---|
6 | mountlist=/tmp/mountlist.txt
|
---|
7 |
|
---|
8 | if [ "$#" -ne "0" ] ;then
|
---|
9 | echo "mr-unmount-me <no params>"
|
---|
10 | echo "...mountlist is assumed to be at $mountlist"
|
---|
11 | exit 1
|
---|
12 | fi
|
---|
13 |
|
---|
14 | for i in `mount | grep /mnt/RESTORING | cut -d' ' -f3 | sort -r`; do
|
---|
15 | umount $i
|
---|
16 | done
|
---|
17 |
|
---|
18 | for i in `cut -d' ' -f1 /proc/swaps | grep /dev`; do
|
---|
19 | swapoff $i
|
---|
20 | done
|
---|
21 |
|
---|
22 | exit 0
|
---|
23 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.