2005-08-26 14:53:17 +02:00
|
|
|
#!/bin/sh
|
2005-09-12 14:53:17 +02:00
|
|
|
|
2005-08-30 12:20:39 +02:00
|
|
|
t=/usr/src/etc/binary_sizes
|
2005-09-12 14:53:17 +02:00
|
|
|
|
|
|
|
if [ "$#" -ne 1 ]
|
|
|
|
then echo "Usage: $0 <big|normal>"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2005-08-30 12:20:39 +02:00
|
|
|
if [ "$1" = big ]
|
|
|
|
then t=$t.big
|
|
|
|
fi
|
2005-09-05 15:03:26 +02:00
|
|
|
chmem =250000 /usr/lib/* /usr/lib/i386/* >/dev/null 2>&1
|
2005-08-30 12:20:39 +02:00
|
|
|
if [ -f $t ]
|
|
|
|
then cat "$t" | while read line
|
2005-09-05 15:03:26 +02:00
|
|
|
do awk '{ print "chmem =" $2 " " $1 " >/dev/null 2>&1 "}'
|
2005-08-30 12:20:39 +02:00
|
|
|
done | /bin/sh
|
|
|
|
fi
|