Last change
on this file since 2353 was 680, checked in by andree, 18 years ago |
Replace occurrences of 'grep -v ... | grep -v ... | ...' with 'grep -Ev
...' for efficiency reasons and to ease trouble-shooting.
This also fixes Debian bug #222052.
|
-
Property svn:keywords
set to
Id
-
Property svn:unix-mode
set to
755
|
File size:
505 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | mountlist=/tmp/mountlist.txt
|
---|
4 |
|
---|
5 | if [ "$#" -ne "0" ] ;then
|
---|
6 | echo "mount-me <no params>"
|
---|
7 | echo "...mountlist is assumed to be at $mountlist"
|
---|
8 | exit 1
|
---|
9 | fi
|
---|
10 |
|
---|
11 | if [ ! -f "$mountlist" ] ; then
|
---|
12 | echo "I cannot find the mountlist '$mountlist'. Aborting."
|
---|
13 | exit 1
|
---|
14 | fi
|
---|
15 |
|
---|
16 | paths=`grep -vE " raid |lvm lvm" $mountlist | tr -s ' ' ' ' | cut -d' ' -f2 | sort`
|
---|
17 | > $mountlist.sorted
|
---|
18 | for i in $paths ; do
|
---|
19 | grep " $i " $mountlist >> $mountlist.sorted
|
---|
20 | done
|
---|
21 | mount-subroutine-me < $mountlist.sorted
|
---|
22 | exit $?
|
---|
Note:
See
TracBrowser
for help on using the repository browser.