From ecbab0c5bc86517e9fd3c9d123a56260218afcae Mon Sep 17 00:00:00 2001 From: Ryan Phillips Date: Mon, 20 Oct 2003 05:11:33 +0000 Subject: fixes #26213 --- net-fs/openafs/ChangeLog | 5 ++++- net-fs/openafs/files/afs.rc.rc6 | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/net-fs/openafs/ChangeLog b/net-fs/openafs/ChangeLog index 51ddb3351527..a7a541572728 100644 --- a/net-fs/openafs/ChangeLog +++ b/net-fs/openafs/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-fs/openafs # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.23 2003/08/06 22:58:54 rphillips Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/ChangeLog,v 1.24 2003/10/20 05:11:33 rphillips Exp $ + + 19 Oct 2003; Ryan Phillips files/afs.rc.rc6: + Added Steven Jenkins' init.d script patch *openafs-1.2.10 (06 Aug 2003) diff --git a/net-fs/openafs/files/afs.rc.rc6 b/net-fs/openafs/files/afs.rc.rc6 index a3c7a4d3cf35..02cac813b2d8 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 | grep ^/ | awk '{print $4}'` + CACHESIZE=`df $PART | tail -1 | awk '{print $(NF-2)}'` CACHESIZE=`expr $CACHESIZE \* 9` CACHESIZE=`expr $CACHESIZE / 10` echo "/afs:/usr/vice/cache:$CACHESIZE" > /usr/vice/etc/cacheinfo -- cgit v1.2.3-65-gdbad