summaryrefslogtreecommitdiff
path: root/net-fs
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2003-12-08 16:30:25 +0000
committerRyan Phillips <rphillips@gentoo.org>2003-12-08 16:30:25 +0000
commita11ed9fd36051632b71477e6a47253bb33efa088 (patch)
tree92b488b43c97d6fa5482ceb7761a9aed2c10317a /net-fs
parent QA drive, fixing bug 35127 (diff)
downloadgentoo-2-a11ed9fd36051632b71477e6a47253bb33efa088.tar.gz
gentoo-2-a11ed9fd36051632b71477e6a47253bb33efa088.tar.bz2
gentoo-2-a11ed9fd36051632b71477e6a47253bb33efa088.zip
*** empty log message ***
Diffstat (limited to 'net-fs')
-rw-r--r--net-fs/openafs/files/afs.rc.rc62
1 files changed, 1 insertions, 1 deletions
diff --git a/net-fs/openafs/files/afs.rc.rc6 b/net-fs/openafs/files/afs.rc.rc6
index 02cac813b2d8..a3c7a4d3cf35 100644
--- a/net-fs/openafs/files/afs.rc.rc6
+++ b/net-fs/openafs/files/afs.rc.rc6
@@ -50,7 +50,7 @@ check_ext2() {
check_cacheinfo(){
[ ! -f /usr/vice/etc/cacheinfo ] && {
PART=`cat /proc/mounts | grep vice | grep ext2 | awk '{print $1}'`
- CACHESIZE=`df $PART | tail -1 | awk '{print $(NF-2)}'`
+ CACHESIZE=`df $PART | grep ^/ | awk '{print $4}'`
CACHESIZE=`expr $CACHESIZE \* 9`
CACHESIZE=`expr $CACHESIZE / 10`
echo "/afs:/usr/vice/cache:$CACHESIZE" > /usr/vice/etc/cacheinfo