Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | t=/etc/binary_sizes
|
---|
4 |
|
---|
5 | if [ "$#" -ne 1 ]
|
---|
6 | then echo "Usage: $0 <big|normal>"
|
---|
7 | exit 1
|
---|
8 | fi
|
---|
9 |
|
---|
10 | if [ "$1" != normal ]
|
---|
11 | then t=$t.$1
|
---|
12 | fi
|
---|
13 |
|
---|
14 | chmem =250000 /usr/lib/* /usr/lib/i386/* >/dev/null 2>&1
|
---|
15 | chmem =600000 /usr/lib/ego/* >/dev/null 2>&1
|
---|
16 | if [ -f $t ]
|
---|
17 | then cat "$t" | while read line
|
---|
18 | do awk '{ print "chmem =" $2 " " $1 " 2>&1 | grep -v area.changed.from || exit 1"}'
|
---|
19 | done | /bin/sh -e || exit 1
|
---|
20 | else
|
---|
21 | echo "$0: $t does not exist" >&2
|
---|
22 | exit 1
|
---|
23 | fi
|
---|
24 | exit 0
|
---|
Note:
See
TracBrowser
for help on using the repository browser.