Last change
on this file since 273 was 273, checked in by bcornec, 18 years ago |
Patches from Sébastien Aperghis-Tramoni <maddingue@…>
replace several occurences of "cat .. | grep .."
or with similar commands that accept filenames as arguments.
+ some sort | uniq replaced by sort -u
|
-
Property svn:keywords
set to
Id
|
File size:
434 bytes
|
Rev | Line | |
---|
[1] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | mountlist=/tmp/mountlist.txt
|
---|
| 4 |
|
---|
| 5 | if [ "$#" -ne "0" ] ;then
|
---|
| 6 | echo "unmount-me <no params>"
|
---|
| 7 | echo "...mountlist is assumed to be at $mountlist"
|
---|
| 8 | exit 1
|
---|
| 9 | fi
|
---|
| 10 |
|
---|
| 11 | #unmount-subroutine-me < $mountlist
|
---|
| 12 | #unmount-subroutine-me < $mountlist
|
---|
| 13 |
|
---|
| 14 | #for j in 1 2 ; do
|
---|
| 15 | for i in `mount | grep /mnt/RESTORING | cut -d' ' -f3 | sort -r`; do
|
---|
| 16 | umount $i
|
---|
| 17 | done
|
---|
| 18 |
|
---|
[273] | 19 | for i in `cut -d' ' -f1 /proc/swaps | grep /dev`; do
|
---|
[1] | 20 | swapoff $i
|
---|
| 21 | done
|
---|
| 22 |
|
---|
| 23 | exit 0
|
---|
| 24 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.