[17003] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: sun4 8.3.13: Netscape

daemon@ATHENA.MIT.EDU (Aaron M. Ucko)
Wed Aug 4 11:47:43 1999

To: "t. belton" <tbelton@MIT.EDU>
Cc: Mike Barker <mbarker@MIT.EDU>, "Roger A. Roach" <rar@MIT.EDU>,
        bugs@MIT.EDU
From: amu@MIT.EDU (Aaron M. Ucko)
Date: 04 Aug 1999 11:47:33 -0400
In-Reply-To: "t. belton"'s message of "Wed, 4 Aug 1999 10:38:24 -0400 (EDT)"
Message-Id: <udllnbrtune.fsf@tux.mit.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

<tbelton@MIT.EDU> (t. belton) writes:

> Darn it, I should learn to read all my mail before replying :)
> 
> I'm trying to make the 'netscape' script more robust right now. Mike, any
> suggestions for having this deal with both an AFS zero-quota situation and
> a non-AFS full-volume situation? I don't know how to test if $HOME points
> to AFS space ....

There are a couple of tests you can perform:

if fs lsm "$HOME" >/dev/null 2>&1; then
        # $HOME is an AFS mount point
        ...
fi

if df "$HOME" | grep /afs >/dev/null 2>&1; then
        # $HOME is in AFS
        ...
fi

-- 
Aaron M. Ucko, KB1CJC <amu@mit.edu> (finger amu@monk.mit.edu)

home help back first fref pref prev next nref lref last post